Swallow errors

This commit is contained in:
Alex Pott 2020-09-02 10:14:45 +01:00
parent f9bfe7fd79
commit ee8cc2666b
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'];