Skip to content

Commit 1594bd1

Browse files
committed
Prevent PHPStan installation for older php versions
1 parent 91421fc commit 1594bd1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.travis.yml

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ jobs:
1010
- php: 7.2
1111
- php: 7.3
1212
- php: 7.3
13+
before_script:
14+
- composer install
15+
- composer require --dev phpstan/phpstan
1316
script: composer run analysis
1417
- php: nightly
1518

composer.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@
4040
},
4141
"require-dev": {
4242
"phpunit/phpunit": ">=4.0",
43-
"squizlabs/php_codesniffer": "^3.0 || ^2.9.1",
44-
"phpstan/phpstan": "^0.10.6"
43+
"squizlabs/php_codesniffer": "^3.0 || ^2.9.1"
4544
},
4645
"autoload": {
4746
"psr-4": {

0 commit comments

Comments
 (0)