Skip to content

Commit dfb48c3

Browse files
committed
Merge branch '5.3' into 5.4
* 5.3: Add missing validators translation [Inflector] Fix inflector for "zombies" fix ErrorExcception in CacheWarmerAggregate [Translation] correctly handle intl domains with TargetOperation
2 parents a8aa21b + 31b284c commit dfb48c3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CacheWarmer/CacheWarmerAggregate.php

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

105105
if (is_file($this->deprecationLogsFilepath)) {
106106
$previousLogs = unserialize(file_get_contents($this->deprecationLogsFilepath));
107-
$collectedLogs = array_merge($previousLogs, $collectedLogs);
107+
if (\is_array($previousLogs)) {
108+
$collectedLogs = array_merge($previousLogs, $collectedLogs);
109+
}
108110
}
109111

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

0 commit comments

Comments
 (0)