Fix phpstan issues (or ignore them).

This commit is contained in:
James Cole
2025-02-09 07:02:12 +01:00
parent f909f1d9ff
commit 6172d60e00
14 changed files with 23 additions and 18 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 $currency */
/** @var TransactionCurrency|null $currency */
$currency = TransactionCurrency::whereCode($code)->first();
if (null === $currency) {
Log::error(sprintf('Could not find currency with code "%s". Fallback to native currency.', $code));