From 446154a665972dfc7b9b4474a35a243737bb2c63 Mon Sep 17 00:00:00 2001 From: Jesper Noordsij Date: Sat, 25 Apr 2026 18:27:51 +0200 Subject: [PATCH 1/2] Add PHP 8.6 polyfill to Support --- composer.json | 1 + src/Illuminate/Support/composer.json | 1 + 2 files changed, 2 insertions(+) diff --git a/composer.json b/composer.json index c991f797152f..0f08779da24b 100644 --- a/composer.json +++ b/composer.json @@ -57,6 +57,7 @@ "symfony/mime": "^7.4.0 || ^8.0.0", "symfony/polyfill-php84": "^1.33", "symfony/polyfill-php85": "^1.33", + "symfony/polyfill-php86": "^1.36", "symfony/process": "^7.4.5 || ^8.0.5", "symfony/routing": "^7.4.0 || ^8.0.0", "symfony/uid": "^7.4.0 || ^8.0.0", diff --git a/src/Illuminate/Support/composer.json b/src/Illuminate/Support/composer.json index eb8bd0c66b6e..663d3ac76156 100644 --- a/src/Illuminate/Support/composer.json +++ b/src/Illuminate/Support/composer.json @@ -26,6 +26,7 @@ "illuminate/reflection": "^13.0", "nesbot/carbon": "^3.8.4", "symfony/polyfill-php85": "^1.33", + "symfony/polyfill-php86": "^1.36", "voku/portable-ascii": "^2.0.2" }, "replace": { From f64e425d131befc008202f7026f8a581bb30c3d8 Mon Sep 17 00:00:00 2001 From: Jesper Noordsij Date: Sat, 25 Apr 2026 18:28:53 +0200 Subject: [PATCH 2/2] Defer Number::clamp to native PHP function --- src/Illuminate/Support/Number.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Support/Number.php b/src/Illuminate/Support/Number.php index 6ea2430a98a0..0acbe21fcddf 100644 --- a/src/Illuminate/Support/Number.php +++ b/src/Illuminate/Support/Number.php @@ -310,7 +310,7 @@ protected static function summarize(int|float $number, int $precision = 0, ?int */ public static function clamp(int|float $number, int|float $min, int|float $max) { - return min(max($number, $min), $max); + return clamp($number, $min, $max); } /**