Skip to content

Commit

Permalink
Merge pull request #56 from php-api-clients/phpstan
Browse files Browse the repository at this point in the history
Add PHPStan
  • Loading branch information
WyriHaximus committed Dec 31, 2018
2 parents 61e405b + a645909 commit fb3a310
Show file tree
Hide file tree
Showing 5 changed files with 665 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ infection:
unit:
composer run-script unit --timeout=0

stan:
composer run-script stan --timeout=0

unit-coverage:
composer run-script unit-coverage --timeout=0

Expand Down
8 changes: 8 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"jakub-onderka/php-parallel-lint": "^1.0.0",
"localheinz/composer-normalize": "^1.0.0",
"nunomaduro/collision": "^2.1",
"phpstan/phpstan": "^0.10.7",
"phpunit/phpunit": "^7.5"
},
"require-dev": {},
Expand Down Expand Up @@ -73,13 +74,15 @@
"composer normalize --ansi",
"@lint-php",
"@cs",
"@stan",
"@unit"
],
"qa-all-extended": [
"composer validate --ansi",
"composer normalize --ansi",
"@lint-php",
"@cs",
"@stan",
"@unit-coverage",
"@infection"
],
Expand All @@ -98,8 +101,13 @@
"qa-windows": [
"@lint-php",
"@cs",
"@stan",
"@unit"
],
"stan": [
"@ensure-installed",
"phpstan analyse src tests --level max --ansi"
],
"unit": [
"@ensure-installed",
"phpunit --colors=always -c phpunit.xml.dist"
Expand Down

0 comments on commit fb3a310

Please sign in to comment.