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:
parent
73b1571bd7
commit
976d3bf787
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user