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 1
1
parameters :
2
2
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'
5
7
includes :
6
8
- 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()
461
461
*/
462
462
public function test_that_it_captures_console_exception (?Command $ mockCommand , string $ expectedCommandName )
463
463
{
464
+ if (! class_exists ('Symfony\Component\Console\Event\ConsoleExceptionEvent ' )) {
465
+ $ this ->markTestSkipped ('ConsoleExceptionEvent does not exist anymore on Symfony 4 ' );
466
+ }
467
+
464
468
if (null === $ mockCommand ) {
465
469
$ this ->markTestSkipped ('Command missing is not possibile with ConsoleExceptionEvent ' );
466
470
}
You can’t perform that action at this time.
0 commit comments