From d399e520a1db93a94765ab017f0ef7b027e27bae Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 22 Sep 2021 09:57:33 +0200 Subject: [PATCH] Satisfy the PHP syntax check in GitHub Actions The PHP 7.3 polyfill fails for PHP 7.3, because of a duplicate class declaration. This file is not actually loaded in new PHP versions, thus we can ignore it. --- .github/workflows/php.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index 1068c40b0a..2c790ce1a3 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -32,5 +32,6 @@ jobs: run: | rm wcfsetup/install/files/lib/system/api/ezyang/htmlpurifier/library/HTMLPurifier.autoload-legacy.php rm wcfsetup/install/files/lib/system/api/symfony/polyfill-mbstring/bootstrap80.php + rm wcfsetup/install/files/lib/system/api/symfony/polyfill-php73/Resources/stubs/JsonException.php - run: | ! find . -type f -name '*.php' -exec php -l '{}' \; 2>&1 |grep -v '^No syntax errors detected' -- 2.20.1