Skip to content

Commit 9008c17

Browse files
committed
phpstan: Add root configuration.
Allow to exclude some errors triggered by the PHPUnit 10 update.
1 parent dafc60a commit 9008c17

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
]
6969
},
7070
"scripts": {
71-
"analyse": "phpstan analyse --level 8 src",
71+
"analyse": "phpstan analyse",
7272
"lint": "php-cs-fixer fix --dry-run src && php-cs-fixer fix --dry-run spec",
7373
"test": "phpspec run --no-coverage",
7474
"test-coverage": "phpspec run"

phpstan.neon

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
parameters:
2+
level: 8
3+
reportUnmatchedIgnoredErrors: false
4+
paths:
5+
- src
6+
ignoreErrors:
7+
# phpstan has hard time to check whenever we are using PHPUnit 10 or PHPUnit 9
8+
-
9+
message: '#Class SebastianBergmann\\CodeCoverage\\Report\\Text constructor invoked with 4 parameters, 1-3 required\.#'
10+
path: ./src/CodeCoverageExtension.php

0 commit comments

Comments
 (0)