|
|
|
@ -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()) {
|
|
|
|
|