7373
7474 strategy :
7575 matrix :
76- php : ['5.4', 'latest']
76+ # These PHP versions should align with the PHP version drops in Symfony itself.
77+ # - Originally the Symfony polyfills supported PHP >= 5.3.3 (tested via PHP 5.4 as setup-php doesn't install PHP 5.3).
78+ # The polyfills need to be installed at v 1.19 (last before the version drop) to test this.
79+ # - As of version v 1.20, the Symfony polyfills support PHP >= 7.1.
80+ # The polyfills need to be installed at v 1.30 (last before the version drop) to test this.
81+ # - As of version v 1.31, the Symfony polyfills support PHP >= 7.2 (tested via "latest").
82+ # The polyfills should default to the latest release to test this.
83+ php : ['5.4', '7.1', 'latest']
7784 phpcompat : ['stable']
7885 experimental : [false]
7986
96103 ini-values : error_reporting=E_ALL, display_errors=On
97104 coverage : none
98105
99- - name : Conditionally require specific versions of the polyfills
106+ - name : " Conditionally require specific versions of the polyfills (PHP 5.4) "
100107 if : ${{ matrix.php == '5.4' }}
101108 run : |
102109 # Remove the PHP 8 polyfill on PHP < 7 as the minimum requirement is PHP 7.1 and the autoloading
@@ -105,6 +112,11 @@ jobs:
105112 composer remove --dev symfony/polyfill-php80 --no-update --no-scripts --no-interaction
106113 composer require --no-update symfony/polyfill-php72:"1.19" symfony/polyfill-php73:"1.19" symfony/polyfill-php74:"1.19" --no-interaction
107114
115+ - name : " Conditionally require specific versions of the polyfills (PHP 7.1)"
116+ if : ${{ matrix.php == '7.1' }}
117+ run : |
118+ composer require --no-update symfony/polyfill-php73:"1.30" symfony/polyfill-php74:"1.30" symfony/polyfill-php80:"1.30" --no-interaction
119+
108120 - name : Conditionally update PHPCompatibility to develop version
109121 if : ${{ matrix.phpcompat != 'stable' }}
110122 run : |
@@ -139,7 +151,8 @@ jobs:
139151
140152 # Check that the rulesets don't throw unnecessary errors for the compat libraries themselves.
141153 # Note: the polyfills for PHP 5.4 - 7.1 have been decoupled from the monorepo at version 1.19.
142- # and are no longer updated.
154+ # The polyfills for PHP 7.2 has been decoupled from the monorepo at version 1.30.
155+ # These are no longer updated.
143156 - name : Test running against the polyfills - polyfills 5.4-7.1
144157 run : |
145158 vendor/bin/phpcs -ps ./vendor/symfony/polyfill-php54/ --standard=PHPCompatibilitySymfonyPolyfillPHP54 --runtime-set testVersion 5.3-
@@ -149,19 +162,26 @@ jobs:
149162 vendor/bin/phpcs -ps ./vendor/symfony/polyfill-php71/ --standard=PHPCompatibilitySymfonyPolyfillPHP71 --runtime-set testVersion 5.3-
150163
151164 # The polyfills for PHP 7.2 and higher are compatible with PHP 5.3+ at version 1.19.
152- - name : Test running against the polyfills - polyfills 7.2-
165+ - name : " Test running against the polyfills - polyfills 7.2- (v1.19) "
153166 if : ${{ matrix.php == '5.4' }}
154167 run : |
155168 vendor/bin/phpcs -ps ./vendor/symfony/polyfill-php72/ --standard=PHPCompatibilitySymfonyPolyfillPHP72 --runtime-set testVersion 5.3-
156169 vendor/bin/phpcs -ps ./vendor/symfony/polyfill-php73/ --standard=PHPCompatibilitySymfonyPolyfillPHP73 --runtime-set testVersion 5.3-
157170 vendor/bin/phpcs -ps ./vendor/symfony/polyfill-php74/ --standard=PHPCompatibilitySymfonyPolyfillPHP74 --runtime-set testVersion 5.3-
158171
159- # The polyfills for PHP 7.2 and higher are compatible with PHP 7.1+ at version 1.20 and above .
160- - name : Test running against the polyfills - polyfills 7.2-
161- if : ${{ matrix.php != '5.4 ' }}
172+ # The polyfills for PHP 7.2 and higher are compatible with PHP 7.1+ at version 1.30 .
173+ - name : " Test running against the polyfills - polyfills 7.2- (v1.30) "
174+ if : ${{ matrix.php == '7.1 ' }}
162175 run : |
163176 vendor/bin/phpcs -ps ./vendor/symfony/polyfill-php72/ --standard=PHPCompatibilitySymfonyPolyfillPHP72 --runtime-set testVersion 7.1-
164177 vendor/bin/phpcs -ps ./vendor/symfony/polyfill-php73/ --standard=PHPCompatibilitySymfonyPolyfillPHP73 --runtime-set testVersion 7.1-
165178 vendor/bin/phpcs -ps ./vendor/symfony/polyfill-php74/ --standard=PHPCompatibilitySymfonyPolyfillPHP74 --runtime-set testVersion 7.1-
166179 vendor/bin/phpcs -ps ./vendor/symfony/polyfill-php80/ --standard=PHPCompatibilitySymfonyPolyfillPHP80 --runtime-set testVersion 7.1-
167180
181+ # The polyfills for PHP 7.3 and higher are compatible with PHP 7.2+ at the current version.
182+ - name : " Test running against the polyfills - polyfills 7.3- (current)"
183+ if : ${{ matrix.php == 'latest' }}
184+ run : |
185+ vendor/bin/phpcs -ps ./vendor/symfony/polyfill-php73/ --standard=PHPCompatibilitySymfonyPolyfillPHP73 --runtime-set testVersion 7.2-
186+ vendor/bin/phpcs -ps ./vendor/symfony/polyfill-php74/ --standard=PHPCompatibilitySymfonyPolyfillPHP74 --runtime-set testVersion 7.2-
187+ vendor/bin/phpcs -ps ./vendor/symfony/polyfill-php80/ --standard=PHPCompatibilitySymfonyPolyfillPHP80 --runtime-set testVersion 7.2-
0 commit comments