Ignore all symfony deprecations
parent
73e95aa0f9
commit
6c9aecf4e7
|
@ -53,10 +53,14 @@ class ErrorHandler
|
|||
}
|
||||
|
||||
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)) {
|
||||
return true;
|
||||
}
|
||||
if (strpos(strtr($file, '\\', '/'), 'vendor/symfony/') !== false) {
|
||||
return true;
|
||||
}
|
||||
|
||||
self::$io->writeError('<warning>Deprecation Notice: '.$message.' in '.$file.':'.$line.'</warning>');
|
||||
if (self::$io->isVerbose()) {
|
||||
|
|
Loading…
Reference in New Issue