From d159636ba48184300d6e7578e477aee5d0fab223 Mon Sep 17 00:00:00 2001 From: Lionel Laffineur Date: Thu, 7 May 2026 20:38:53 +0200 Subject: [PATCH] Fix for support to PHP8.5 --- lib/Skeleton/I18n/Util.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Skeleton/I18n/Util.php b/lib/Skeleton/I18n/Util.php index c8ff295..d85488d 100644 --- a/lib/Skeleton/I18n/Util.php +++ b/lib/Skeleton/I18n/Util.php @@ -229,7 +229,7 @@ public static function get_best_matching_language($http_accept_language, $langco // so we multiply the qvalue by 1000 to avoid floating point // comparisons. $langcode = strtolower($match[1]); - $qvalue = isset($match[2]) ? (double) $match[2] : 1; + $qvalue = isset($match[2]) ? (float) $match[2] : 1; // Take the highest qvalue for this langcode. Although the request // supposedly contains unique langcodes, our mapping possibly resolves