Skip to content

Commit

Permalink
Ignore all symfony deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek authored and dzuelke committed Dec 9, 2021
1 parent ac9f4ac commit be27349
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Composer/Util/ErrorHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ public static function handle($level, $message, $file, $line)
if (preg_match('{^Return type of (Symfony|Composer)\\\\.*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()) {
Expand Down

0 comments on commit be27349

Please sign in to comment.