Skip to content

Commit d07b757

Browse files
authored
Merge pull request #108 from getsentry/fix-build
Fix CI build
2 parents 1710460 + dacd02a commit d07b757

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

phpstan.neon

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
parameters:
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'
57
includes:
68
- vendor/phpstan/phpstan-phpunit/extension.neon

test/EventListener/ExceptionListenerTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)