Make method static

This commit is contained in:
James Cole 2019-08-12 18:16:12 +02:00
parent eac406d62d
commit e358f19548
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -123,7 +123,7 @@ class AmountFormat extends Twig_Extension
return new Twig_SimpleFunction(
'formatAmountBySymbol',
/** @noinspection MoreThanThreeArgumentsInspection */
function (string $amount, string $symbol, int $decimalPlaces = null, bool $coloured = null): string {
static function (string $amount, string $symbol, int $decimalPlaces = null, bool $coloured = null): string {
$decimalPlaces = $decimalPlaces ?? 2;
$coloured = $coloured ?? true;
$currency = new TransactionCurrency;