We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 699c583 + 2ea1bcd commit 8d03d7aCopy full SHA for 8d03d7a
1 file changed
src/StaticAnalysis/CachingSourceAnalyser.php
@@ -109,8 +109,14 @@ private function read(string $cacheFile): AnalysisResult|false
109
return false;
110
}
111
112
+ $data = file_get_contents($cacheFile);
113
+
114
+ if ($data === false) {
115
+ return false;
116
+ }
117
118
return unserialize(
- file_get_contents($cacheFile),
119
+ $data,
120
[
121
'allowed_classes' => [
122
AnalysisResult::class,
0 commit comments