We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c11cde commit 571b26aCopy full SHA for 571b26a
src/Cache/FileSystemCache.php
@@ -18,7 +18,7 @@ class FileSystemCache implements Cache
18
19
public function __construct()
20
{
21
- if (PHP_OS === 'WINNT') {
+ if (strtoupper(substr(php_uname('s'), 0, 3)) === 'WIN') {
22
$this->cacheDir = getenv('LOCALAPPDATA') . '\\PHP Language Server\\';
23
} else if (getenv('XDG_CACHE_HOME')) {
24
$this->cacheDir = getenv('XDG_CACHE_HOME') . '/phpls/';
0 commit comments