Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"@lint:php"
],
"phpstan": [
"phpstan analyse --memory-limit=-1 src/ tests/ rector.php --ansi --no-progress"
"phpstan analyse --memory-limit=-1 --ansi --no-progress"
],
"rector:check": [
"rector --dry-run --ansi --no-progress-bar"
Expand Down
3 changes: 2 additions & 1 deletion infection.json5
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@
"mutators": {
"@default": true
},
"maxTimeouts": 0
"maxTimeouts": 0,
"staticAnalysisTool": "phpstan"
}
6 changes: 5 additions & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ includes:
- phar://vendor/phpstan/phpstan/phpstan.phar/conf/bleedingEdge.neon

parameters:
paths:
- ./src
- ./tests
- ./rector.php

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move folders/files to analyze to PHPStan config from command line to let Infection reuse those without duplicating it anywhere else

level: max
reportUnmatchedIgnoredErrors: false
checkExplicitMixed: true

ignoreErrors:
- '#Dynamic call to static method PHPUnit\\Framework\\.*#'
Loading