File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 11parameters :
22 ignoreErrors :
3- - '/Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\NodeParentInterface::/'
4- - '/Calling method \w+ on possibly null value of type Symfony\\Component\\Config\\Definition\\Builder\\NodeParentInterface|null/'
3+ - '/Symfony\\Component\\Console\\Event\\ConsoleExceptionEvent/'
4+ - '/Call to an undefined method Symfony\\Component\\Console\\Event\\ConsoleEvent::getExitCode\ (\ )\./'
5+ excludes_analyse :
6+ - '%currentWorkingDirectory%/src/DependencyInjection/Configuration.php'
57includes :
68 - vendor/phpstan/phpstan-phpunit/extension.neon
Original file line number Diff line number Diff line change @@ -461,6 +461,10 @@ public function test_that_it_captures_exception()
461461 */
462462 public function test_that_it_captures_console_exception (?Command $ mockCommand , string $ expectedCommandName )
463463 {
464+ if (! class_exists ('Symfony\Component\Console\Event\ConsoleExceptionEvent ' )) {
465+ $ this ->markTestSkipped ('ConsoleExceptionEvent does not exist anymore on Symfony 4 ' );
466+ }
467+
464468 if (null === $ mockCommand ) {
465469 $ this ->markTestSkipped ('Command missing is not possibile with ConsoleExceptionEvent ' );
466470 }
You can’t perform that action at this time.
0 commit comments