Revert "Swallow errors"

This reverts commit ee8cc2666b.
This commit is contained in:
Alex Pott 2020-09-02 10:51:41 +01:00
parent ee8cc2666b
commit 244e8d2408
No known key found for this signature in database
GPG Key ID: 31905460D4A69276

View File

@ -61,7 +61,7 @@ class Deprecation
$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'];