Skip to content

Commit

Permalink
Merge branch '4.4' into 5.1
Browse files Browse the repository at this point in the history
* 4.4:
  swallow deprecations
  • Loading branch information
xabbuh committed Sep 1, 2020
2 parents 3229133 + bba78ce commit e7d37c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions DeprecationErrorHandler/Deprecation.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ public function __construct($message, array $trace, $file)
$this->triggeringFile = $file;
if (isset($line['object']) || isset($line['class'])) {
if (isset($line['class']) && 0 === strpos($line['class'], SymfonyTestsListenerFor::class)) {
set_error_handler(function () {});
$parsedMsg = unserialize($this->message);
restore_error_handler();
$this->message = $parsedMsg['deprecation'];
$this->originClass = $parsedMsg['class'];
$this->originMethod = $parsedMsg['method'];
Expand Down

0 comments on commit e7d37c9

Please sign in to comment.