mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 12:55:26 +01:00
debug CI
This commit is contained in:
parent
c1cef60e21
commit
acffb851f6
@ -168,9 +168,15 @@ class FileStorageCacheProvider
|
|||||||
mkdir($parser_cache_directory, 0777, true);
|
mkdir($parser_cache_directory, 0777, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (version_compare(phpversion(), '8.1', '>=')) {
|
||||||
|
$hash = hash('xxh128', $file_path);
|
||||||
|
} else {
|
||||||
|
$hash = hash('md4', $file_path);
|
||||||
|
}
|
||||||
|
|
||||||
return $parser_cache_directory
|
return $parser_cache_directory
|
||||||
. DIRECTORY_SEPARATOR
|
. DIRECTORY_SEPARATOR
|
||||||
. version_compare(phpversion(), '8.1', '>=') ? hash('xxh128', $file_path) : hash('md4', $file_path)
|
. $hash
|
||||||
. ($this->config->use_igbinary ? '-igbinary' : '');
|
. ($this->config->use_igbinary ? '-igbinary' : '');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user