From f95ed10f2c2585eda49df01e99b23d580ea62c29 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 3 Jun 2016 00:43:06 +0200 Subject: [PATCH] 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. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" . -- 2.20.1