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