Merge branch '5.1' into master
* 5.1: Missed AbstractArgument swallow deprecations
This commit is contained in:
commit
59ae592909
@ -60,7 +60,9 @@ class Deprecation
|
||||
$line = $trace[$i];
|
||||
$this->triggeringFile = $file;
|
||||
if (isset($line['object']) || isset($line['class'])) {
|
||||
set_error_handler(function () {});
|
||||
$parsedMsg = @unserialize($this->message);
|
||||
restore_error_handler();
|
||||
if ($parsedMsg && isset($parsedMsg['deprecation'])) {
|
||||
$this->message = $parsedMsg['deprecation'];
|
||||
$this->originClass = $parsedMsg['class'];
|
||||
|
Reference in New Issue
Block a user