Ignore all symfony deprecations

main
Jordi Boggiano 3 years ago
parent 73e95aa0f9
commit 6c9aecf4e7
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC

@ -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…
Cancel
Save