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.
1 parent 049e641 commit 2eaa19fCopy full SHA for 2eaa19f
src/Symfony/Component/HttpKernel/CacheWarmer/CacheWarmerAggregate.php
@@ -102,7 +102,9 @@ public function warmUp($cacheDir)
102
103
if (file_exists($this->deprecationLogsFilepath)) {
104
$previousLogs = unserialize(file_get_contents($this->deprecationLogsFilepath));
105
- $collectedLogs = array_merge($previousLogs, $collectedLogs);
+ if (\is_array($previousLogs)) {
106
+ $collectedLogs = array_merge($previousLogs, $collectedLogs);
107
+ }
108
}
109
110
file_put_contents($this->deprecationLogsFilepath, serialize(array_values($collectedLogs)));
0 commit comments