mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Revert serialisation changes
This commit is contained in:
parent
38c8a1d9cf
commit
8c4a3734a3
@ -52,7 +52,7 @@ class CacheProvider
|
||||
filemtime($cache_location) > $file_modified_time
|
||||
) {
|
||||
/** @var array<int, \PhpParser\Node\Stmt> */
|
||||
return igbinary_unserialize((string)file_get_contents($cache_location)) ?: null;
|
||||
return unserialize((string)file_get_contents($cache_location)) ?: null;
|
||||
}
|
||||
}
|
||||
|
||||
@ -103,7 +103,7 @@ class CacheProvider
|
||||
mkdir($parser_cache_directory, 0777, true);
|
||||
}
|
||||
|
||||
file_put_contents($cache_location, igbinary_serialize($stmts));
|
||||
file_put_contents($cache_location, serialize($stmts));
|
||||
|
||||
$this->file_content_hashes[$file_cache_key] = $file_content_hash;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user