Skip to content

Commit

Permalink
remove file_get_contents that was incorrectly put in v5
Browse files Browse the repository at this point in the history
  • Loading branch information
kkmuffme committed Dec 7, 2022
1 parent 4dc969b commit 1ee4b4a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Psalm/Internal/Provider/ParserCacheProvider.php
Expand Up @@ -12,7 +12,6 @@

use function clearstatcache;
use function error_log;
use function file_get_contents;
use function file_put_contents;
use function filemtime;
use function gettype;
Expand Down Expand Up @@ -170,7 +169,7 @@ private function getExistingFileContentHashes(): array
throw new UnexpectedValueException('No cache directory defined');
}
if (is_readable($file_hashes_path)) {
$hashes_encoded = (string) file_get_contents($file_hashes_path);
$hashes_encoded = Providers::safeFileGetContents($file_hashes_path);

if (!$hashes_encoded) {
error_log('Unexpected value when loading from file content hashes');
Expand Down

0 comments on commit 1ee4b4a

Please sign in to comment.