Skip to content

Commit 1fe4eef

Browse files
committed
Add PHPStan
1 parent 95820f0 commit 1fe4eef

2 files changed

Lines changed: 9 additions & 2 deletions

File tree

composer.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
"squizlabs/php_codesniffer": "^3.0",
2727
"brick/varexporter": "^0.3.5",
2828
"friendsofphp/php-cs-fixer": "^3.2",
29-
"oscarotero/php-cs-fixer-config": "^2.0"
29+
"oscarotero/php-cs-fixer-config": "^2.0",
30+
"phpstan/phpstan": "^2.1"
3031
},
3132
"autoload": {
3233
"psr-4": {
@@ -41,7 +42,8 @@
4142
"scripts": {
4243
"test": [
4344
"phpunit",
44-
"phpcs"
45+
"phpcs",
46+
"phpstan"
4547
],
4648
"cs-fix": "php-cs-fixer fix"
4749
}

phpstan.dist.neon

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
parameters:
2+
level: 0
3+
paths:
4+
- src
5+
- tests

0 commit comments

Comments
 (0)