Skip to content

Commit

Permalink
Fix type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
pelmered committed Jan 3, 2024
1 parent 7ea56ee commit 42c9b82
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Tables/Columns/MoneyColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@ protected function setUp(): void
$this->isMoney = true;
$this->numeric();

$this->formatStateUsing(static function (MoneyEntry $component, $state): ?string {
$currency = $component->getCurrency();
$locale = $component->getLocale();
$this->formatStateUsing(static function (MoneyColumn $column, $state): ?string {
$currency = $column->getCurrency();
$locale = $column->getLocale();

return MoneyFormatter::format($state, $currency, $locale);
});

}
}

0 comments on commit 42c9b82

Please sign in to comment.