Ignore all symfony deprecations
parent
73e95aa0f9
commit
6c9aecf4e7
|
@ -53,10 +53,14 @@ class ErrorHandler
|
||||||
}
|
}
|
||||||
|
|
||||||
if (self::$io) {
|
if (self::$io) {
|
||||||
// ignore symfony/* deprecation warnings about return types
|
// ignore symfony/* deprecation warnings
|
||||||
|
// TODO remove in 2.3
|
||||||
if (preg_match('{^Return type of Symfony\\\\.*ReturnTypeWillChange}is', $message)) {
|
if (preg_match('{^Return type of Symfony\\\\.*ReturnTypeWillChange}is', $message)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
if (strpos(strtr($file, '\\', '/'), 'vendor/symfony/') !== false) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
self::$io->writeError('<warning>Deprecation Notice: '.$message.' in '.$file.':'.$line.'</warning>');
|
self::$io->writeError('<warning>Deprecation Notice: '.$message.' in '.$file.':'.$line.'</warning>');
|
||||||
if (self::$io->isVerbose()) {
|
if (self::$io->isVerbose()) {
|
||||||
|
|
Loading…
Reference in New Issue