Skip to content

Commit 76affd2

Browse files
authored
Merge pull request opencfp#1093 from localheinz/feature/phpstan
Enhancement: Require phpstan/phpstan
2 parents 66d8a58 + 13fa04d commit 76affd2

File tree

3 files changed

+675
-2
lines changed

3 files changed

+675
-2
lines changed

Makefile

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: asset cache composer coverage cs database infection integration it test test-env unit
1+
.PHONY: asset cache composer coverage cs database infection integration it stan test test-env unit
22

33
it: cs test
44

@@ -31,6 +31,9 @@ infection: composer database
3131
integration: test-env composer database cache
3232
vendor/bin/phpunit --testsuite integration
3333

34+
stan: composer
35+
vendor/bin/phpstan analyse --level=2 classes tests
36+
3437
test: integration unit
3538

3639
test-env:

composer.json

+1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
"localheinz/test-util": "0.6.0",
5454
"mikey179/vfsStream": "^1.6.5",
5555
"mockery/mockery": "^1.0.0",
56+
"phpstan/phpstan": "~0.9.2",
5657
"phpunit/phpunit": "^6.5.1",
5758
"symfony/browser-kit": "^3.4",
5859
"symfony/debug-bundle": "^3.4",

0 commit comments

Comments
 (0)