1
0
Fork 0

Check syntax of PHP files in src

pull/8773/head
Fabien Villepinte 2020-04-12 21:54:51 +02:00
parent 40a35abb94
commit 94c7afb69b
1 changed files with 1 additions and 0 deletions

View File

@ -71,6 +71,7 @@ before_script:
- git config --global user.email travis@example.com
script:
- ( set -e; for f in $(find src/ -name *.php); do php -l "$f" || exit 1; done )
- if [[ $PHPSTAN == "1" ]]; then
bin/composer require --dev phpstan/phpstan:^0.12 phpunit/phpunit:^7.5 --no-update &&
bin/composer update phpstan/* phpunit/* sebastian/* --with-all-dependencies &&