1
0
Fork 0

Ignore all symfony deprecations

pull/10089/head
Jordi Boggiano 2021-09-03 21:38:44 +02:00
parent 73e95aa0f9
commit 6c9aecf4e7
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 5 additions and 1 deletions

View File

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