From 94c7afb69b4bf44671e4d0d3d1a545ba30988c95 Mon Sep 17 00:00:00 2001 From: Fabien Villepinte Date: Sun, 12 Apr 2020 21:54:51 +0200 Subject: [PATCH] Check syntax of PHP files in src --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 0cf228882..22c4c9db5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 &&