diff --git a/src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler/Deprecation.php b/src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler/Deprecation.php index 650c8a154382d..59bcdbcbc6670 100644 --- a/src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler/Deprecation.php +++ b/src/Symfony/Bridge/PhpUnit/DeprecationErrorHandler/Deprecation.php @@ -61,7 +61,7 @@ public function __construct($message, array $trace, $file) $this->triggeringFile = $file; if (isset($line['object']) || isset($line['class'])) { set_error_handler(function () {}); - $parsedMsg = @unserialize($this->message); + $parsedMsg = unserialize($this->message); restore_error_handler(); if ($parsedMsg && isset($parsedMsg['deprecation'])) { $this->message = $parsedMsg['deprecation'];