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