diff --git a/Firewall/ContextListener.php b/Firewall/ContextListener.php index 9b3c129..06f2c39 100644 --- a/Firewall/ContextListener.php +++ b/Firewall/ContextListener.php @@ -301,7 +301,7 @@ private function safelyUnserialize(string $serializedToken) $token = null; $prevUnserializeHandler = ini_set('unserialize_callback_func', __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, 0x37313BC, $type, $file, $line); }