Skip to content

Commit 6d2cf3e

Browse files
committed
composer: added PHPStan
1 parent 85d4388 commit 6d2cf3e

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

.travis.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,8 @@ jobs:
4444

4545

4646
- stage: Static Analysis (informative)
47-
install:
48-
# Install PHPStan
49-
- travis_retry composer create-project phpstan/phpstan-shim temp/phpstan --no-progress
50-
- travis_retry composer install --no-progress --prefer-dist
5147
script:
52-
- php temp/phpstan/phpstan.phar analyse --autoload-file vendor/autoload.php --level 5 src
48+
- composer run-script phpstan
5349

5450

5551
- stage: Code Coverage

composer.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
"nette/tester": "^2.0",
2424
"nette/di": "^v3.0",
2525
"latte/latte": "^2.4",
26-
"tracy/tracy": "^2.4"
26+
"tracy/tracy": "^2.4",
27+
"phpstan/phpstan": "^0.12"
2728
},
2829
"suggest": {
2930
"ext-pdo_sqlite": "to use SQLiteStorage or SQLiteJournal"
@@ -32,6 +33,10 @@
3233
"classmap": ["src/"]
3334
},
3435
"minimum-stability": "dev",
36+
"scripts": {
37+
"phpstan": "phpstan analyse --level 5 src",
38+
"tester": "tester tests -s"
39+
},
3540
"extra": {
3641
"branch-alias": {
3742
"dev-master": "3.0-dev"

0 commit comments

Comments
 (0)