From 1006b3e291f757704f04b1e2aac146ce4d9fdac8 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Mon, 22 Jun 2026 00:59:09 +0200 Subject: [PATCH] PHP 8.4 polyfill: update the ruleset for bc*() function / sync with v1.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 * https://github.com/symfony/polyfill/commit/7846989b4f2df4b38ee2e2cc2ead42b93ec100c0 --- PHPCompatibilitySymfonyPolyfillPHP84/ruleset.xml | 8 ++++++++ Test/SymfonyPolyfillPHP84Test.php | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/PHPCompatibilitySymfonyPolyfillPHP84/ruleset.xml b/PHPCompatibilitySymfonyPolyfillPHP84/ruleset.xml index 6becd33..05b99e1 100644 --- a/PHPCompatibilitySymfonyPolyfillPHP84/ruleset.xml +++ b/PHPCompatibilitySymfonyPolyfillPHP84/ruleset.xml @@ -17,7 +17,10 @@ + + + @@ -68,6 +71,11 @@ /polyfill-php84/bootstrap82\.php$ + + + /polyfill-php84/Resources/RoundingMode\.php$ + +