1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-27 04:45:20 +01:00
This commit is contained in:
kkmuffme 2022-05-24 10:00:54 +02:00
parent c1cef60e21
commit acffb851f6

View File

@ -168,9 +168,15 @@ class FileStorageCacheProvider
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
. DIRECTORY_SEPARATOR
. version_compare(phpversion(), '8.1', '>=') ? hash('xxh128', $file_path) : hash('md4', $file_path)
. $hash
. ($this->config->use_igbinary ? '-igbinary' : '');
}
}