Skip to content

Commit

Permalink
Adds missing return value in MessageFormatter::applyNumberSkeleton
Browse files Browse the repository at this point in the history
Signed-off-by: Jon Stovell <[email protected]>
  • Loading branch information
Sesquipedalian committed Nov 19, 2024
1 parent 46f2da3 commit b2c6fb6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/Localization/MessageFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -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],
],
Expand Down

0 comments on commit b2c6fb6

Please sign in to comment.