Skip to content
Permalink
Browse files

Create cache directory if it doesn’t exist

  • Loading branch information...
muglug committed Jul 11, 2019
1 parent 73b1571 commit 976d3bf7874d9331ba78dbb4644218a66473f9f4
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/Psalm/Internal/Provider/FileReferenceCacheProvider.php
@@ -649,6 +649,10 @@ public function setConfigHashCache(string $hash)
$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(

0 comments on commit 976d3bf

Please sign in to comment.
You can’t perform that action at this time.