6464 diff -B ./PHPCompatibilitySymfonyPolyfillPHP82/ruleset.xml <(xmllint --format "./PHPCompatibilitySymfonyPolyfillPHP82/ruleset.xml")
6565 diff -B ./PHPCompatibilitySymfonyPolyfillPHP83/ruleset.xml <(xmllint --format "./PHPCompatibilitySymfonyPolyfillPHP83/ruleset.xml")
6666 diff -B ./PHPCompatibilitySymfonyPolyfillPHP84/ruleset.xml <(xmllint --format "./PHPCompatibilitySymfonyPolyfillPHP84/ruleset.xml")
67+ diff -B ./PHPCompatibilitySymfonyPolyfillPHP85/ruleset.xml <(xmllint --format "./PHPCompatibilitySymfonyPolyfillPHP85/ruleset.xml")
6768
6869 test :
6970 # Don't run the cron job on forks.
7980 # The polyfills need to be installed at v 1.19 (last before the version drop) to test this.
8081 # - As of version v 1.20, the Symfony polyfills support PHP >= 7.1.
8182 # The polyfills need to be installed at v 1.30 (last before the version drop) to test this.
82- # - As of version v 1.31, the Symfony polyfills support PHP >= 7.2 (tested via "latest").
83+ # - As of version v 1.31, the Symfony polyfills support PHP >= 7.2 (tested via PHP "latest").
8384 # The polyfills should default to the latest release to test this.
8485 php : ['5.4', '7.1', 'latest']
8586 phpcompat : ['stable']
@@ -112,13 +113,15 @@ jobs:
112113 # Remove the PHP 8.x polyfills on PHP < 7 as the minimum requirement is PHP 7.1 and the autoloading
113114 # of the polyfill bootstrap file via Composer would generate a parse error, blocking the DealerDirect plugin
114115 # from setting the installed_paths for PHPCS.
115- composer remove --dev symfony/polyfill-php80 symfony/polyfill-php81 symfony/polyfill-php82 symfony/polyfill-php83 symfony/polyfill-php84 --no-update --no-scripts --no-interaction
116- composer require --no-update symfony/polyfill-php72:"1.19" symfony/polyfill-php73:"1.19" symfony/polyfill-php74:"1.19" --no-interaction
116+ composer remove --dev symfony/polyfill-php80 symfony/polyfill-php81 symfony/polyfill-php82 symfony/polyfill-php83 symfony/polyfill-php84 symfony/polyfill-php85 --no-update --no-scripts --no-interaction
117+ composer require --dev -- no-update symfony/polyfill-php72:"1.19" symfony/polyfill-php73:"1.19" symfony/polyfill-php74:"1.19" --no-interaction
117118
118119 - name : " Conditionally require specific versions of the polyfills (PHP 7.1)"
119120 if : ${{ matrix.php == '7.1' }}
120121 run : |
121- composer require --no-update symfony/polyfill-php73:"1.30" symfony/polyfill-php74:"1.30" symfony/polyfill-php80:"1.30" symfony/polyfill-php81:"1.30" symfony/polyfill-php82:"1.30" symfony/polyfill-php83:"1.30" symfony/polyfill-php84:"1.30" --no-interaction
122+ # Remove the PHP >= 8.5 polyfills on PHP 7.1 as the minimum requirement is PHP 7.2.
123+ composer remove --dev symfony/polyfill-php85 --no-update --no-scripts --no-interaction
124+ composer require --dev --no-update symfony/polyfill-php73:"1.30" symfony/polyfill-php74:"1.30" symfony/polyfill-php80:"1.30" symfony/polyfill-php81:"1.30" symfony/polyfill-php82:"1.30" symfony/polyfill-php83:"1.30" symfony/polyfill-php84:"1.30" --no-interaction
122125
123126 - name : Conditionally update PHPCompatibility to develop version
124127 if : ${{ matrix.phpcompat != 'stable' }}
@@ -146,7 +149,7 @@ jobs:
146149 vendor/bin/phpcs -ps ./Test/SymfonyPolyfillPHP73Test.php --standard=PHPCompatibilitySymfonyPolyfillPHP73 --exclude=PHPCompatibility.Upgrade.LowPHP --runtime-set testVersion 5.3-
147150 vendor/bin/phpcs -ps ./Test/SymfonyPolyfillPHP74Test.php --standard=PHPCompatibilitySymfonyPolyfillPHP74 --exclude=PHPCompatibility.Upgrade.LowPHP --runtime-set testVersion 5.3-
148151
149- - name : Test the PHP 8.x rulesets
152+ - name : Test the PHP 8.0-8.4 rulesets
150153 # The PHP 8.x polyfills have a minimum PHP requirement of PHP 7.1.
151154 if : ${{ matrix.php != '5.4' }}
152155 run : |
@@ -156,6 +159,12 @@ jobs:
156159 vendor/bin/phpcs -ps ./Test/SymfonyPolyfillPHP83Test.php --standard=PHPCompatibilitySymfonyPolyfillPHP83 --exclude=PHPCompatibility.Upgrade.LowPHP --runtime-set testVersion 7.1-
157160 vendor/bin/phpcs -ps ./Test/SymfonyPolyfillPHP84Test.php --standard=PHPCompatibilitySymfonyPolyfillPHP84 --exclude=PHPCompatibility.Upgrade.LowPHP --runtime-set testVersion 7.1-
158161
162+ - name : Test the PHP 8.5 ruleset
163+ # The PHP 8.5 polyfills have a minimum PHP requirement of PHP 7.2.
164+ if : ${{ matrix.php == 'latest' }}
165+ run : |
166+ vendor/bin/phpcs -ps ./Test/SymfonyPolyfillPHP85Test.php --standard=PHPCompatibilitySymfonyPolyfillPHP85 --runtime-set testVersion 7.2-
167+
159168 # Check that the rulesets don't throw unnecessary errors for the compat libraries themselves.
160169 # Note: the polyfills for PHP 5.4 - 7.1 have been decoupled from the monorepo at version 1.19.
161170 # The polyfills for PHP 7.2 have been decoupled from the monorepo at version 1.30.
@@ -168,15 +177,15 @@ jobs:
168177 vendor/bin/phpcs -ps ./vendor/symfony/polyfill-php70/ --standard=PHPCompatibilitySymfonyPolyfillPHP70 --exclude=PHPCompatibility.Upgrade.LowPHP --runtime-set testVersion 5.3-
169178 vendor/bin/phpcs -ps ./vendor/symfony/polyfill-php71/ --standard=PHPCompatibilitySymfonyPolyfillPHP71 --exclude=PHPCompatibility.Upgrade.LowPHP --runtime-set testVersion 5.3-
170179
171- # The polyfills for PHP 7.2 and higher are compatible with PHP 5.3+ at version 1.19.
180+ # The polyfills for PHP 7.2-7.4 are compatible with PHP 5.3+ at version 1.19.
172181 - name : " Test running against the polyfills - polyfills 7.2- (v1.19)"
173182 if : ${{ matrix.php == '5.4' }}
174183 run : |
175184 vendor/bin/phpcs -ps ./vendor/symfony/polyfill-php72/ --standard=PHPCompatibilitySymfonyPolyfillPHP72 --exclude=PHPCompatibility.Upgrade.LowPHP --runtime-set testVersion 5.3-
176185 vendor/bin/phpcs -ps ./vendor/symfony/polyfill-php73/ --standard=PHPCompatibilitySymfonyPolyfillPHP73 --exclude=PHPCompatibility.Upgrade.LowPHP --runtime-set testVersion 5.3-
177186 vendor/bin/phpcs -ps ./vendor/symfony/polyfill-php74/ --standard=PHPCompatibilitySymfonyPolyfillPHP74 --exclude=PHPCompatibility.Upgrade.LowPHP --runtime-set testVersion 5.3-
178187
179- # The polyfills for PHP 7.2 and higher are compatible with PHP 7.1+ at version 1.30.
188+ # The polyfills for PHP 7.2-8.4 are compatible with PHP 7.1+ at version 1.30.
180189 - name : " Test running against the polyfills - polyfills 7.2- (v1.30)"
181190 if : ${{ matrix.php == '7.1' }}
182191 run : |
@@ -201,3 +210,4 @@ jobs:
201210 vendor/bin/phpcs -ps ./vendor/symfony/polyfill-php82/ --standard=PHPCompatibilitySymfonyPolyfillPHP82 --runtime-set testVersion 7.2-
202211 vendor/bin/phpcs -ps ./vendor/symfony/polyfill-php83/ --standard=PHPCompatibilitySymfonyPolyfillPHP83 --runtime-set testVersion 7.2-
203212 vendor/bin/phpcs -ps ./vendor/symfony/polyfill-php84/ --standard=PHPCompatibilitySymfonyPolyfillPHP84 --runtime-set testVersion 7.2-
213+ vendor/bin/phpcs -ps ./vendor/symfony/polyfill-php85/ --standard=PHPCompatibilitySymfonyPolyfillPHP85 --runtime-set testVersion 7.2-
0 commit comments