diff --git a/Command/AnnotationLintCommand.php b/Command/AnnotationLintCommand.php index 7ad7dde..3a2a77b 100644 --- a/Command/AnnotationLintCommand.php +++ b/Command/AnnotationLintCommand.php @@ -46,7 +46,7 @@ protected function execute(InputInterface $input, OutputInterface $output) if (empty($errors)) { $style->success('Everything is fine'); - return; + return 0; } $style->error(sprintf('Found %d issues.', count($errors))); diff --git a/phpstan.neon.dist b/phpstan.neon.dist new file mode 100644 index 0000000..ca0f64b --- /dev/null +++ b/phpstan.neon.dist @@ -0,0 +1,11 @@ +parameters: + level: 3 + paths: + - %currentWorkingDirectory% + excludes_analyse: + - ./vendor/ + - ./Tests/ + ignoreErrors: + - + path: %currentWorkingDirectory%/DependencyInjection/Configuration.php + message: '#Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition::children()#' \ No newline at end of file