From fbde03ab377cbcb922b48c9b8a732037694ff867 Mon Sep 17 00:00:00 2001 From: jrfnl Date: Sat, 11 Jul 2020 06:36:10 +0200 Subject: [PATCH] PHP 7.2 polyfill: Update the ruleset Polyfill for four `PHP_FLOAT_*` constants were added in v 1.16.0 of the `polyfill-php72` package. Ref: * https://github.com/symfony/polyfill-php72/commit/42fda6d7380e5c940d7f68341ccae89d5ab9963b --- PHPCompatibilitySymfonyPolyfillPHP72/ruleset.xml | 6 +++++- README.md | 4 ++++ Test/SymfonyPolyfillPHP72Test.php | 2 ++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/PHPCompatibilitySymfonyPolyfillPHP72/ruleset.xml b/PHPCompatibilitySymfonyPolyfillPHP72/ruleset.xml index af10b11..a6401cb 100644 --- a/PHPCompatibilitySymfonyPolyfillPHP72/ruleset.xml +++ b/PHPCompatibilitySymfonyPolyfillPHP72/ruleset.xml @@ -4,12 +4,16 @@ + + + + + - diff --git a/README.md b/README.md index f55d7b4..5a58c38 100644 --- a/README.md +++ b/README.md @@ -117,6 +117,10 @@ All code within the PHPCompatibility organisation is released under the GNU Less ## Changelog +### 1.1.3 - 2020-07-19 + +* `PHPCompatibilitySymfonyPolyfillPHP72` ruleset: allow for four polyfilled `PHP_FLOAT_*` constants, which were added in `polyfill-php72` version `1.16.0`. + ### 1.1.2 - 2020-05-20 * `PHPCompatibilitySymfonyPolyfillPHP56` ruleset: allow for two polyfilled LDAP constants (undocumented in the Polyfill docs) diff --git a/Test/SymfonyPolyfillPHP72Test.php b/Test/SymfonyPolyfillPHP72Test.php index e03f1cf..151b107 100644 --- a/Test/SymfonyPolyfillPHP72Test.php +++ b/Test/SymfonyPolyfillPHP72Test.php @@ -8,3 +8,5 @@ $d = sapi_windows_vt100_support(); $e = mb_scrub(mb_ord(mb_chr(spl_object_id(), $encoding), $encoding), $encoding); + +$floats = PHP_FLOAT_DIG + PHP_FLOAT_EPSILON + PHP_FLOAT_MIN + PHP_FLOAT_MAX;