Skip to content

Commit 1ee667f

Browse files
committed
Add PHPStan in the Travis build
1 parent 3266fd5 commit 1ee667f

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,10 @@ jobs:
3030
- stage: Test
3131
php: 7.0
3232
env: COMPOSER_OPTIONS="--prefer-lowest"
33-
- stage: codestyle
33+
- stage: codestyle and SCA
3434
php: 7.1
3535
script:
36+
- vendor/bin/phpstan analyse src --level 7
3637
- vendor/bin/php-cs-fixer fix --verbose --diff --dry-run
3738
- stage: coverage
3839
php: 7.1

composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,10 @@
3131
},
3232
"require-dev": {
3333
"friendsofphp/php-cs-fixer": "^2.5",
34+
"phpstan/phpstan": "^0.8.4",
3435
"phpunit/phpunit": "^5.7|^6.0",
35-
"scrutinizer/ocular": "^1.4"
36+
"scrutinizer/ocular": "^1.4",
37+
"symfony/expression-language": "^2.7|^2.8"
3638
},
3739
"autoload": {
3840
"psr-4" : {

0 commit comments

Comments
 (0)