Skip to content

Commit 2eaa19f

Browse files
committed
fix ErrorExcception in CacheWarmerAggregate
1 parent 049e641 commit 2eaa19f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Symfony/Component/HttpKernel/CacheWarmer/CacheWarmerAggregate.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,9 @@ public function warmUp($cacheDir)
102102

103103
if (file_exists($this->deprecationLogsFilepath)) {
104104
$previousLogs = unserialize(file_get_contents($this->deprecationLogsFilepath));
105-
$collectedLogs = array_merge($previousLogs, $collectedLogs);
105+
if (\is_array($previousLogs)) {
106+
$collectedLogs = array_merge($previousLogs, $collectedLogs);
107+
}
106108
}
107109

108110
file_put_contents($this->deprecationLogsFilepath, serialize(array_values($collectedLogs)));

0 commit comments

Comments
 (0)