Skip to content

Commit cf411ba

Browse files
committed
Add phpstan
1 parent 6732366 commit cf411ba

File tree

2 files changed

+61
-3
lines changed

2 files changed

+61
-3
lines changed

composer.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434
"require-dev": {
3535
"composer/composer": "^1.2",
3636
"squizlabs/php_codesniffer": "^3.4",
37-
"symfony/phpunit-bridge": "^5.1"
37+
"symfony/phpunit-bridge": "^5.1",
38+
"phpstan/phpstan": "^0.12.50"
3839
},
3940
"autoload" : {
4041
"psr-4" : {
@@ -54,6 +55,7 @@
5455
"cs" : [
5556
"phpcs src --standard=PSR12 --encoding=UTF-8",
5657
"phpcs test --standard=PSR12 --encoding=UTF-8"
57-
]
58+
],
59+
"static": "phpstan --ansi analyse --level 1 src"
5860
}
5961
}

composer.lock

Lines changed: 57 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)