Skip to content

Commit fb3a310

Browse files
authored
Merge pull request #56 from php-api-clients/phpstan
Add PHPStan
2 parents 61e405b + a645909 commit fb3a310

File tree

5 files changed

+665
-3
lines changed

5 files changed

+665
-3
lines changed

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ infection:
3131
unit:
3232
composer run-script unit --timeout=0
3333

34+
stan:
35+
composer run-script stan --timeout=0
36+
3437
unit-coverage:
3538
composer run-script unit-coverage --timeout=0
3639

composer.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"jakub-onderka/php-parallel-lint": "^1.0.0",
2020
"localheinz/composer-normalize": "^1.0.0",
2121
"nunomaduro/collision": "^2.1",
22+
"phpstan/phpstan": "^0.10.7",
2223
"phpunit/phpunit": "^7.5"
2324
},
2425
"require-dev": {},
@@ -73,13 +74,15 @@
7374
"composer normalize --ansi",
7475
"@lint-php",
7576
"@cs",
77+
"@stan",
7678
"@unit"
7779
],
7880
"qa-all-extended": [
7981
"composer validate --ansi",
8082
"composer normalize --ansi",
8183
"@lint-php",
8284
"@cs",
85+
"@stan",
8386
"@unit-coverage",
8487
"@infection"
8588
],
@@ -98,8 +101,13 @@
98101
"qa-windows": [
99102
"@lint-php",
100103
"@cs",
104+
"@stan",
101105
"@unit"
102106
],
107+
"stan": [
108+
"@ensure-installed",
109+
"phpstan analyse src tests --level max --ansi"
110+
],
103111
"unit": [
104112
"@ensure-installed",
105113
"phpunit --colors=always -c phpunit.xml.dist"

0 commit comments

Comments
 (0)