Skip to content

Commit 9da081c

Browse files
bug #42032 [HttpKernel] recover from failed deserializations (xabbuh)
This PR was merged into the 4.4 branch. Discussion ---------- [HttpKernel] recover from failed deserializations | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #42031 | License | MIT | Doc PR | Commits ------- d10b3a63e5 recover from failed deserializations
2 parents 6c5b78e + 09878fd commit 9da081c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

HttpCache/Store.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ private function getMetadata(string $key): array
298298
return [];
299299
}
300300

301-
return unserialize($entries);
301+
return unserialize($entries) ?: [];
302302
}
303303

304304
/**

0 commit comments

Comments
 (0)