Skip to content

Commit 1bea21e

Browse files
committed
#2 Improve PHPStan config
1 parent 1a89edb commit 1bea21e

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"scripts": {
5555
"test": "vendor/bin/phpunit",
5656
"phpcs": "vendor/bin/phpcs --standard=phpcs.xml src",
57-
"phpstan": "vendor/bin/phpstan --level=0 --no-progress analyse src"
57+
"phpstan": "vendor/bin/phpstan --level=0 --no-progress analyse --configuration phpstan.neon --memory-limit 2G"
5858
},
5959
"extra": {
6060
"branch-alias": {

phpstan.neon

+9
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
parameters:
2+
# The level 9 is the highest level
3+
level: 9
4+
reportUnmatchedIgnoredErrors: false
5+
6+
paths:
7+
- src
8+
- tests
9+
210
excludePaths:
311
analyse:
412
- vendor
513
- resources
14+
615
ignoreErrors:
716
- '#Function config_path not found#'
817
- '#Function config not found#'

0 commit comments

Comments
 (0)