5757 diff -B ./PHPCompatibilitySymfonyPolyfillPHP72/ruleset.xml <(xmllint --format "./PHPCompatibilitySymfonyPolyfillPHP72/ruleset.xml")
5858 diff -B ./PHPCompatibilitySymfonyPolyfillPHP73/ruleset.xml <(xmllint --format "./PHPCompatibilitySymfonyPolyfillPHP73/ruleset.xml")
5959 diff -B ./PHPCompatibilitySymfonyPolyfillPHP74/ruleset.xml <(xmllint --format "./PHPCompatibilitySymfonyPolyfillPHP74/ruleset.xml")
60+ diff -B ./PHPCompatibilitySymfonyPolyfillPHP80/ruleset.xml <(xmllint --format "./PHPCompatibilitySymfonyPolyfillPHP80/ruleset.xml")
6061
6162 test :
6263 needs : xmllint
8990 - name : Conditionally require specific versions of the polyfills
9091 if : ${{ matrix.php == '5.4' }}
9192 run : |
93+ # Remove the PHP 8 polyfill on PHP < 7 as the minimum requirement is PHP 7.1 and the autoloading
94+ # of the polyfill bootstrap file via Composer would generate a parse error, blocking the DealerDirect plugin
95+ # from setting the installed_paths for PHPCS.
96+ composer remove --dev symfony/polyfill-php80 --no-update --no-scripts
9297 composer require --no-update symfony/polyfill-php72:"1.19" symfony/polyfill-php73:"1.19" symfony/polyfill-php74:"1.19"
9398
9499 - name : Conditionally update PHPCompatibility to develop version
@@ -117,6 +122,12 @@ jobs:
117122 vendor/bin/phpcs -ps ./Test/SymfonyPolyfillPHP73Test.php --standard=PHPCompatibilitySymfonyPolyfillPHP73 --runtime-set testVersion 5.3-
118123 vendor/bin/phpcs -ps ./Test/SymfonyPolyfillPHP74Test.php --standard=PHPCompatibilitySymfonyPolyfillPHP74 --runtime-set testVersion 5.3-
119124
125+ - name : Test the PHP 8.0 ruleset
126+ # The PHP 8.0 polyfill has a minimum PHP requirement of PHP 7.1.
127+ if : ${{ matrix.php != '5.4' }}
128+ run : |
129+ vendor/bin/phpcs -ps ./Test/SymfonyPolyfillPHP80Test.php --standard=PHPCompatibilitySymfonyPolyfillPHP80 --runtime-set testVersion 7.1-
130+
120131 # Check that the rulesets don't throw unnecessary errors for the compat libraries themselves.
121132 # Note: the polyfills for PHP 5.4 - 7.1 have been decoupled from the monorepo at version 1.19.
122133 # and are no longer updated.
@@ -143,3 +154,5 @@ jobs:
143154 vendor/bin/phpcs -ps ./vendor/symfony/polyfill-php72/ --standard=PHPCompatibilitySymfonyPolyfillPHP72 --runtime-set testVersion 7.1-
144155 vendor/bin/phpcs -ps ./vendor/symfony/polyfill-php73/ --standard=PHPCompatibilitySymfonyPolyfillPHP73 --runtime-set testVersion 7.1-
145156 vendor/bin/phpcs -ps ./vendor/symfony/polyfill-php74/ --standard=PHPCompatibilitySymfonyPolyfillPHP74 --runtime-set testVersion 7.1-
157+ vendor/bin/phpcs -ps ./vendor/symfony/polyfill-php80/ --standard=PHPCompatibilitySymfonyPolyfillPHP80 --runtime-set testVersion 7.1-
158+
0 commit comments