Merge branch '5.1' into master

* 5.1:
  Missed AbstractArgument
  swallow deprecations
This commit is contained in:
Christian Flothmann 2020-09-01 15:18:17 +02:00
commit 59ae592909

View File

@ -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'];