Skip to content

Commit

Permalink
#2 Improve PHPStan config
Browse files Browse the repository at this point in the history
  • Loading branch information
alies-dev committed Dec 10, 2021
1 parent 1a89edb commit 1bea21e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"scripts": {
"test": "vendor/bin/phpunit",
"phpcs": "vendor/bin/phpcs --standard=phpcs.xml src",
"phpstan": "vendor/bin/phpstan --level=0 --no-progress analyse src"
"phpstan": "vendor/bin/phpstan --level=0 --no-progress analyse --configuration phpstan.neon --memory-limit 2G"
},
"extra": {
"branch-alias": {
Expand Down
9 changes: 9 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -1,8 +1,17 @@
parameters:
# The level 9 is the highest level
level: 9
reportUnmatchedIgnoredErrors: false

paths:
- src
- tests

excludePaths:
analyse:
- vendor
- resources

ignoreErrors:
- '#Function config_path not found#'
- '#Function config not found#'
Expand Down

0 comments on commit 1bea21e

Please sign in to comment.