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 6b76343 commit 0a4f363
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ResourceCheckerConfigCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ private function safelyUnserialize(string $file)
$signalingException = new \UnexpectedValueException();
$prevUnserializeHandler = ini_set('unserialize_callback_func', self::class.'::handleUnserializeCallback');
$prevErrorHandler = set_error_handler(function ($type, $msg, $file, $line, $context = []) use (&$prevErrorHandler, $signalingException) {
if (__FILE__ === $file) {
if (__FILE__ === $file && !\in_array($type, [\E_DEPRECATED, \E_USER_DEPRECATED], true)) {
throw $signalingException;
}

Expand Down

0 comments on commit 0a4f363

Please sign in to comment.