Skip to content

Conversation

@jrfnl
Copy link
Member

@jrfnl jrfnl commented Oct 22, 2025

The Symfony project has released a polyfill library for PHP 8.3 and what with the release of PHPCompatibility 10.0.0-alpha1, features polyfilled by that library would now be flagged.

This adds a corresponding PHPCompatibility ruleset for this polyfill.

Includes integration test.

Note: while creating this polyfill ruleset, PHPCompatibility found two PHP cross-version compatibility bugs in the actual polyfills ;-)
These have both been reported upstream.

Bug reports:

Additionally, PHPCompatibility correctly detected that the PHP 8.3 polyfills were not in actual fact compatible with PHP 7.1. This was "fixed" in version 1.31.0 when support for PHP 7.1 was dropped.

@jrfnl jrfnl added this to the 2.0.0-alpha1 milestone Oct 22, 2025
The Symfony project has released a [polyfill library for PHP 8.3](https://github.com/symfony/polyfill-php83) and what with the release of PHPCompatibility 10.0.0-alpha1, features polyfilled by that library would now be flagged.

This adds a corresponding PHPCompatibility ruleset for this polyfill.

Includes integration test.

Note: while creating this polyfill ruleset, PHPCompatibility found two PHP cross-version compatibility bugs in the actual polyfills ;-)
These have both been reported upstream.

Bug reports:
* symfony/polyfill 499#issuecomment-3430297592
* symfony/polyfill 550

Additionally, PHPCompatibility correctly detected that the PHP 8.3 polyfills were not in actual fact compatible with PHP 7.1. This was "fixed" in version 1.31.0 when support for PHP 7.1 was dropped.
@jrfnl jrfnl force-pushed the feature/new-php83-polyfill-ruleset branch from ad50f08 to 47a180a Compare October 22, 2025 03:35
@jrfnl jrfnl merged commit 78701de into master Oct 22, 2025
6 checks passed
@jrfnl jrfnl deleted the feature/new-php83-polyfill-ruleset branch October 22, 2025 03:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant