Merge branch '4.4' into 5.1
* 4.4: swallow deprecations
This commit is contained in:
commit
b7cd4c7d4e
@ -62,7 +62,9 @@ class Deprecation
|
|||||||
$this->triggeringFile = $file;
|
$this->triggeringFile = $file;
|
||||||
if (isset($line['object']) || isset($line['class'])) {
|
if (isset($line['object']) || isset($line['class'])) {
|
||||||
if (isset($line['class']) && 0 === strpos($line['class'], SymfonyTestsListenerFor::class)) {
|
if (isset($line['class']) && 0 === strpos($line['class'], SymfonyTestsListenerFor::class)) {
|
||||||
|
set_error_handler(function () {});
|
||||||
$parsedMsg = unserialize($this->message);
|
$parsedMsg = unserialize($this->message);
|
||||||
|
restore_error_handler();
|
||||||
$this->message = $parsedMsg['deprecation'];
|
$this->message = $parsedMsg['deprecation'];
|
||||||
$this->originClass = $parsedMsg['class'];
|
$this->originClass = $parsedMsg['class'];
|
||||||
$this->originMethod = $parsedMsg['method'];
|
$this->originMethod = $parsedMsg['method'];
|
||||||
|
Reference in New Issue
Block a user