Skip to content

PHP 8.4 polyfill: update the ruleset for bc*() function / sync with v1.34.0#92

Merged
jrfnl merged 1 commit into
masterfrom
feature/sync-with-polyfill-v1.34.0-3
Jun 21, 2026
Merged

PHP 8.4 polyfill: update the ruleset for bc*() function / sync with v1.34.0#92
jrfnl merged 1 commit into
masterfrom
feature/sync-with-polyfill-v1.34.0-3

Conversation

@jrfnl

@jrfnl jrfnl commented Jun 21, 2026

Copy link
Copy Markdown
Member

As of version v1.34.0, the BCMath bcceil(), bcfloor() and bcround() functions, as introduced in PHP 8.4, are now included in the Symfony polyfill.

Note: the upstream commit also polyfills the PHP RoundingMode enum, however, PHPCompatibility doesn't detect this yet, so this will need to be dealt with at a later point in time once it becomes clear how PHPCompatibility will report on this. A test for the enum has been added to ensure that the tests for this package will start failing once PHPCompatibility addresses this.

Ref:

…1.34.0

As of version v1.34.0, the BCMath `bcceil()`, `bcfloor()` and `bcround()` functions, as introduced in PHP 8.4, are now included in the Symfony polyfill.

Note: the upstream commit also polyfills the PHP `RoundingMode` enum, however, PHPCompatibility doesn't detect this yet, so this will need to be dealt with at a later point in time once it becomes clear how PHPCompatibility will report on this.
A test for the enum has been added to ensure that the tests for this package will start failing once PHPCompatibility addresses this.

Ref:
* symfony/polyfill 546
* symfony/polyfill@7846989
@jrfnl

jrfnl commented Jun 21, 2026

Copy link
Copy Markdown
Member Author

Note: this should be the last PR in the series to fix the CI build failure.

@jrfnl

jrfnl commented Jun 21, 2026

Copy link
Copy Markdown
Member Author

Hmm... okay, the last one related to PHP 8.4.... Now off to pull the PRs for PHP 8.5....

@jrfnl jrfnl merged commit 0ca7e0c into master Jun 21, 2026
3 of 6 checks passed
@jrfnl jrfnl deleted the feature/sync-with-polyfill-v1.34.0-3 branch June 21, 2026 23:24
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