Skip to content

Commit

Permalink
add phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
ArrayIterator committed Nov 12, 2023
1 parent 05f5cdb commit 5a35e87
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"psr/cache": "^3",
"squizlabs/php_codesniffer": "3.7.2",
"slevomat/coding-standard": "^8.14",
"phpunit/phpunit": "^10.4"
"phpunit/phpunit": "^10.4",
"phpstan/phpstan": "^1.10"
},
"config": {
"optimize-autoloader": true,
Expand Down
13 changes: 13 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
parameters:
level: 8
checkGenericClassInNonGenericObjectType: false
paths:
- src
- tests
fileExtensions:
- php
# ignoreErrors:
# -
# message: '#^Method.+::[^\(]+\(\) has no return type#'
# paths:
# - src/Interfaces/*

0 comments on commit 5a35e87

Please sign in to comment.