Skip to content

Commit

Permalink
[Config][Messenger][Security] Don't turn deprecations into exceptions…
Browse files Browse the repository at this point in the history
… when unserializing
  • Loading branch information
nicolas-grekas committed Feb 23, 2024
1 parent 3c1eda0 commit 2114101
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Transport/Serialization/PhpSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ private function safelyUnserialize(string $contents)

$prevUnserializeHandler = ini_set('unserialize_callback_func', self::class.'::handleUnserializeCallback');
$prevErrorHandler = set_error_handler(function ($type, $msg, $file, $line, $context = []) use (&$prevErrorHandler) {
if (__FILE__ === $file) {
if (__FILE__ === $file && !\in_array($type, [\E_DEPRECATED, \E_USER_DEPRECATED], true)) {
throw new \ErrorException($msg, 0, $type, $file, $line);
}

Expand Down

0 comments on commit 2114101

Please sign in to comment.