Skip to content

Commit 5a35e87

Browse files
committed
add phpstan
1 parent 05f5cdb commit 5a35e87

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"psr/cache": "^3",
1818
"squizlabs/php_codesniffer": "3.7.2",
1919
"slevomat/coding-standard": "^8.14",
20-
"phpunit/phpunit": "^10.4"
20+
"phpunit/phpunit": "^10.4",
21+
"phpstan/phpstan": "^1.10"
2122
},
2223
"config": {
2324
"optimize-autoloader": true,

phpstan.neon

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
parameters:
2+
level: 8
3+
checkGenericClassInNonGenericObjectType: false
4+
paths:
5+
- src
6+
- tests
7+
fileExtensions:
8+
- php
9+
# ignoreErrors:
10+
# -
11+
# message: '#^Method.+::[^\(]+\(\) has no return type#'
12+
# paths:
13+
# - src/Interfaces/*

0 commit comments

Comments
 (0)