1
0
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:
Matthew Brown 2017-10-12 20:27:33 -04:00
parent 38c8a1d9cf
commit 8c4a3734a3

View File

@ -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;