Skip to content

Commit

Permalink
Merge pull request #108 from getsentry/fix-build
Browse files Browse the repository at this point in the history
Fix CI build
  • Loading branch information
Jean85 committed Feb 26, 2018
2 parents 1710460 + dacd02a commit d07b757
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 4 additions & 2 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
parameters:
ignoreErrors:
- '/Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\NodeParentInterface::/'
- '/Calling method \w+ on possibly null value of type Symfony\\Component\\Config\\Definition\\Builder\\NodeParentInterface|null/'
- '/Symfony\\Component\\Console\\Event\\ConsoleExceptionEvent/'
- '/Call to an undefined method Symfony\\Component\\Console\\Event\\ConsoleEvent::getExitCode\(\)\./'
excludes_analyse:
- '%currentWorkingDirectory%/src/DependencyInjection/Configuration.php'
includes:
- vendor/phpstan/phpstan-phpunit/extension.neon
4 changes: 4 additions & 0 deletions test/EventListener/ExceptionListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,10 @@ public function test_that_it_captures_exception()
*/
public function test_that_it_captures_console_exception(?Command $mockCommand, string $expectedCommandName)
{
if (! class_exists('Symfony\Component\Console\Event\ConsoleExceptionEvent')) {
$this->markTestSkipped('ConsoleExceptionEvent does not exist anymore on Symfony 4');
}

if (null === $mockCommand) {
$this->markTestSkipped('Command missing is not possibile with ConsoleExceptionEvent');
}
Expand Down

0 comments on commit d07b757

Please sign in to comment.