Skip to content

Commit c3dc4e1

Browse files
committed
phpstan 0.11
1 parent 850a2d7 commit c3dc4e1

File tree

3 files changed

+10
-14
lines changed

3 files changed

+10
-14
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ jobs:
3333
- stage: Phpstan
3434
php: 7.1
3535
script:
36-
- composer run-script phpstan-install
3736
- composer run-script phpstan
3837

3938
- stage: Test Coverage

composer.json

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,11 @@
2424
"ninjify/qa": "^0.8.0",
2525
"phpunit/phpunit": "^7.4.3",
2626
"nette/http": "~2.4.10",
27-
"nette/caching": "~2.5.8"
27+
"nette/caching": "~2.5.8",
28+
"phpstan/phpstan-shim": "^0.11",
29+
"phpstan/phpstan-deprecation-rules": "^0.11",
30+
"phpstan/phpstan-nette": "^0.11",
31+
"phpstan/phpstan-strict-rules": "^0.11"
2832
},
2933
"minimum-stability": "dev",
3034
"prefer-stable": true,
@@ -49,15 +53,8 @@
4953
"coverage": [
5054
"phpdbg -qrr vendor/bin/phpunit tests --colors=always -c tests/coverage.xml"
5155
],
52-
"phpstan-install": [
53-
"mkdir -p temp/phpstan",
54-
"composer require -d temp/phpstan phpstan/phpstan:^0.10",
55-
"composer require -d temp/phpstan phpstan/phpstan-deprecation-rules:^0.10",
56-
"composer require -d temp/phpstan phpstan/phpstan-nette:^0.10",
57-
"composer require -d temp/phpstan phpstan/phpstan-strict-rules:^0.10"
58-
],
5956
"phpstan": [
60-
"temp/phpstan/vendor/bin/phpstan analyse -l max -c phpstan.neon src"
57+
"vendor/bin/phpstan analyse -l max -c phpstan.neon src"
6158
]
6259
},
6360
"extra": {

phpstan.neon

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
includes:
2-
- temp/phpstan/vendor/phpstan/phpstan-deprecation-rules/rules.neon
3-
- temp/phpstan/vendor/phpstan/phpstan-nette/extension.neon
4-
- temp/phpstan/vendor/phpstan/phpstan-nette/rules.neon
5-
- temp/phpstan/vendor/phpstan/phpstan-strict-rules/rules.neon
2+
- vendor/phpstan/phpstan-deprecation-rules/rules.neon
3+
- vendor/phpstan/phpstan-nette/extension.neon
4+
- vendor/phpstan/phpstan-nette/rules.neon
5+
- vendor/phpstan/phpstan-strict-rules/rules.neon

0 commit comments

Comments
 (0)