Small code cleanup.

This commit is contained in:
James Cole
2025-02-09 07:10:05 +01:00
parent 6172d60e00
commit c61389037d
4 changed files with 5 additions and 1 deletions

View File

@@ -114,7 +114,7 @@ class AmountFormat extends AbstractExtension
static function (string $amount, string $code, ?bool $coloured = null): string {
$coloured ??= true;
/** @var TransactionCurrency|null $currency */
/** @var null|TransactionCurrency $currency */
$currency = TransactionCurrency::whereCode($code)->first();
if (null === $currency) {
Log::error(sprintf('Could not find currency with code "%s". Fallback to native currency.', $code));