Skip to content

Commit a15649b

Browse files
committed
composer: added PHPStan
1 parent 4240fd7 commit a15649b

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

.travis.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,9 @@ jobs:
4141

4242

4343
- stage: Static Analysis (informative)
44-
install:
45-
# Install PHPStan
46-
- travis_retry composer create-project phpstan/phpstan-shim temp/phpstan --no-progress
47-
- travis_retry composer install --no-progress --prefer-dist
44+
php: 7.4
4845
script:
49-
- php temp/phpstan/phpstan.phar analyse --autoload-file vendor/autoload.php --level 5 src
46+
- composer run-script phpstan
5047

5148

5249
- stage: Code Coverage

composer.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,17 @@
2020
},
2121
"require-dev": {
2222
"nette/tester": "^2.0",
23-
"tracy/tracy": "^2.3"
23+
"tracy/tracy": "^2.3",
24+
"phpstan/phpstan": "^0.12"
2425
},
2526
"autoload": {
2627
"classmap": ["src/"]
2728
},
2829
"minimum-stability": "dev",
30+
"scripts": {
31+
"phpstan": "phpstan analyse --level 5 src",
32+
"tester": "tester tests -s"
33+
},
2934
"extra": {
3035
"branch-alias": {
3136
"dev-master": "3.3-dev"

0 commit comments

Comments
 (0)