@@ -118,13 +118,28 @@ jobs:
118118 vendor/bin/phpcs -ps ./Test/SymfonyPolyfillPHP74Test.php --standard=PHPCompatibilitySymfonyPolyfillPHP74 --runtime-set testVersion 5.3-
119119
120120 # Check that the rulesets don't throw unnecessary errors for the compat libraries themselves.
121- - name : Test running against the polyfills
121+ # Note: the polyfills for PHP 5.4 - 7.1 have been decoupled from the monorepo at version 1.19.
122+ # and are no longer updated.
123+ - name : Test running against the polyfills - polyfills 5.4-7.1
122124 run : |
123125 vendor/bin/phpcs -ps ./vendor/symfony/polyfill-php54/ --standard=PHPCompatibilitySymfonyPolyfillPHP54 --runtime-set testVersion 5.3-
124126 vendor/bin/phpcs -ps ./vendor/symfony/polyfill-php55/ --standard=PHPCompatibilitySymfonyPolyfillPHP55 --runtime-set testVersion 5.3-
125127 vendor/bin/phpcs -ps ./vendor/symfony/polyfill-php56/ ./vendor/symfony/polyfill-util/ --standard=PHPCompatibilitySymfonyPolyfillPHP56 --runtime-set testVersion 5.3- --ignore=*/polyfill-util/TestListener*
126128 vendor/bin/phpcs -ps ./vendor/symfony/polyfill-php70/ --standard=PHPCompatibilitySymfonyPolyfillPHP70 --runtime-set testVersion 5.3-
127129 vendor/bin/phpcs -ps ./vendor/symfony/polyfill-php71/ --standard=PHPCompatibilitySymfonyPolyfillPHP71 --runtime-set testVersion 5.3-
130+
131+ # The polyfills for PHP 7.2 and higher are compatible with PHP 5.3+ at version 1.19.
132+ - name : Test running against the polyfills - polyfills 7.2-
133+ if : ${{ matrix.php == '5.4' }}
134+ run : |
128135 vendor/bin/phpcs -ps ./vendor/symfony/polyfill-php72/ --standard=PHPCompatibilitySymfonyPolyfillPHP72 --runtime-set testVersion 5.3-
129136 vendor/bin/phpcs -ps ./vendor/symfony/polyfill-php73/ --standard=PHPCompatibilitySymfonyPolyfillPHP73 --runtime-set testVersion 5.3-
130137 vendor/bin/phpcs -ps ./vendor/symfony/polyfill-php74/ --standard=PHPCompatibilitySymfonyPolyfillPHP74 --runtime-set testVersion 5.3-
138+
139+ # The polyfills for PHP 7.2 and higher are compatible with PHP 7.1+ at version 1.20 and above.
140+ - name : Test running against the polyfills - polyfills 7.2-
141+ if : ${{ matrix.php != '5.4' }}
142+ run : |
143+ vendor/bin/phpcs -ps ./vendor/symfony/polyfill-php72/ --standard=PHPCompatibilitySymfonyPolyfillPHP72 --runtime-set testVersion 7.1-
144+ vendor/bin/phpcs -ps ./vendor/symfony/polyfill-php73/ --standard=PHPCompatibilitySymfonyPolyfillPHP73 --runtime-set testVersion 7.1-
145+ vendor/bin/phpcs -ps ./vendor/symfony/polyfill-php74/ --standard=PHPCompatibilitySymfonyPolyfillPHP74 --runtime-set testVersion 7.1-
0 commit comments