From: Tim Düsterhus Date: Thu, 2 Jun 2016 22:43:06 +0000 (+0200) Subject: Exclude autoload_static.php from PHP syntax check X-Git-Tag: 3.0.0_Beta_1~1537 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f95ed10f2c2585eda49df01e99b23d580ea62c29;p=GitHub%2FWoltLab%2FWCF.git Exclude autoload_static.php from PHP syntax check The file is only used when PHP 5.6 is detected and thus causes a false positive. --- diff --git a/.travis.yml b/.travis.yml index 1ff1b4bf2f..14954657ad 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,5 +7,5 @@ before_install: - pyrus install pear/PHP_CodeSniffer - phpenv rehash script: - - find . -type f -name '*.php' -print0 |xargs -0 -I file -P 4 php -l file > /dev/null + - find . -type f -name '*.php' -not -path './wcfsetup/install/files/lib/system/api/composer/autoload_static.php' -print0 |xargs -0 -I file -P 4 php -l file > /dev/null - phpcs -p --extensions=php --standard="`pwd`/CodeSniff/WCF" .