1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-21 21:31:13 +01:00

Create cache directory if it doesn’t exist

This commit is contained in:
Brown 2019-07-11 10:46:12 -04:00
parent 73b1571bd7
commit 976d3bf787

View File

@ -649,6 +649,10 @@ class FileReferenceCacheProvider
$cache_directory = Config::getInstance()->getCacheDirectory();
if ($cache_directory) {
if (file_exists($cache_directory)) {
mkdir($cache_directory, 0777, true);
}
$config_hash_cache_location = $cache_directory . DIRECTORY_SEPARATOR . self::CONFIG_HASH_CACHE_NAME;
file_put_contents(