Skip to content

Commit

Permalink
CALM: Suppress Psalm error for NumberFormatter
Browse files Browse the repository at this point in the history
  • Loading branch information
chriszarate committed Dec 17, 2024
1 parent a7076c8 commit ea8c354
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions inc/Formatting/FieldFormatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
final class FieldFormatter {
/**
* Format a number as a currency.
*
* @psalm-suppress UnusedPsalmSuppress
* @psalm-suppress UndefinedClass
*/
public static function format_currency( mixed $value, string $iso_4127_currency_code = 'USD', ?string $locale = null ): string {
$format = numfmt_create( $locale ?? get_locale(), NumberFormatter::CURRENCY );
Expand Down

0 comments on commit ea8c354

Please sign in to comment.