diff --git a/src/Psalm/Internal/Provider/ParserCacheProvider.php b/src/Psalm/Internal/Provider/ParserCacheProvider.php index 09543d00a..df753a088 100644 --- a/src/Psalm/Internal/Provider/ParserCacheProvider.php +++ b/src/Psalm/Internal/Provider/ParserCacheProvider.php @@ -321,7 +321,7 @@ class ParserCacheProvider { $cache_directory = Config::getInstance()->getCacheDirectory(); - if ($cache_directory) { + if (!$cache_directory) { return 0; }