Skip to content

Commit 6ea4aff

Browse files
committed
Merge branch '5.4' into 6.4
* 5.4: [Config][Messenger][Security] Don't turn deprecations into exceptions when unserializing
2 parents 206482f + 0a4f363 commit 6ea4aff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ResourceCheckerConfigCache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ private function safelyUnserialize(string $file): mixed
150150
$signalingException = new \UnexpectedValueException();
151151
$prevUnserializeHandler = ini_set('unserialize_callback_func', self::class.'::handleUnserializeCallback');
152152
$prevErrorHandler = set_error_handler(function ($type, $msg, $file, $line, $context = []) use (&$prevErrorHandler, $signalingException) {
153-
if (__FILE__ === $file) {
153+
if (__FILE__ === $file && !\in_array($type, [\E_DEPRECATED, \E_USER_DEPRECATED], true)) {
154154
throw $signalingException;
155155
}
156156

0 commit comments

Comments
 (0)