diff --git a/Sources/Localization/MessageFormatter.php b/Sources/Localization/MessageFormatter.php index 5f80c890c4..56fe29a67f 100644 --- a/Sources/Localization/MessageFormatter.php +++ b/Sources/Localization/MessageFormatter.php @@ -540,6 +540,8 @@ protected static function applyNumberSkeleton(int|float|string $number, string $ if (strlen($matches[3]) > 1) { $long_form .= '/*' . str_repeat('e', strlen($matches[3])); } + + return $long_form; }, '/(?<=\s|^)0+(?=\s|$)/' => fn ($matches) => 'integer-width/*' . $matches[0], ],