From dfb93cfa20d25c7c01e10aa9e53095b2b0042d4b Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 7 Feb 2019 17:45:34 +0100 Subject: [PATCH] exclude (failing) pear tests from our PHP systax check --- doc/php_syntax_check.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/php_syntax_check.sh b/doc/php_syntax_check.sh index dcf076f2d2..32dde7f89f 100755 --- a/doc/php_syntax_check.sh +++ b/doc/php_syntax_check.sh @@ -23,6 +23,8 @@ find ${@-.} -name '*.php' -exec ${PHP:-php} -l {} \; 2>&1 | \ # exclude several known problems, to be able to find new ones # exclude old / not used PEAR Autoloader giving PHP Fatal error: Method PEAR_Autoloader::__call() must take exactly 2 arguments grep -v 'vendor/pear-pear.php.net/PEAR/PEAR/Autoloader.php' | \ + # exclude PEAR tests giving PHP Parse error: syntax error, unexpected 'new' (T_NEW) + grep -v 'vendor/pear/pear/tests/' | \ # exclude composer conditional included autoload_static.php, as it requires PHP 5.6+ grep -v 'vendor/composer/autoload_static.php' | \ # exclude vendor/phpunit it shows many PHP Parse errors in PHP < 7.0