Skip to content

Commit

Permalink
Added PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyholm committed Nov 7, 2019
1 parent 46551c8 commit 336e274
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Command/AnnotationLintCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)));
Expand Down
11 changes: 11 additions & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
@@ -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()#'

0 comments on commit 336e274

Please sign in to comment.