swallow deprecations

This commit is contained in:
Christian Flothmann 2020-08-31 17:41:58 +02:00
parent ae37887485
commit f0067c106c
1 changed files with 2 additions and 0 deletions

View File

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