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 0ba13a7 + 2ac1ef6 commit 31b284cCopy full SHA for 31b284c
CacheWarmer/CacheWarmerAggregate.php
@@ -103,7 +103,9 @@ public function warmUp(string $cacheDir)
103
104
if (is_file($this->deprecationLogsFilepath)) {
105
$previousLogs = unserialize(file_get_contents($this->deprecationLogsFilepath));
106
- $collectedLogs = array_merge($previousLogs, $collectedLogs);
+ if (\is_array($previousLogs)) {
107
+ $collectedLogs = array_merge($previousLogs, $collectedLogs);
108
+ }
109
}
110
111
file_put_contents($this->deprecationLogsFilepath, serialize(array_values($collectedLogs)));
0 commit comments