From e358f195489c7b54af1b6acda201041e6337222a Mon Sep 17 00:00:00 2001 From: James Cole Date: Mon, 12 Aug 2019 18:16:12 +0200 Subject: [PATCH] Make method static --- app/Support/Twig/AmountFormat.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Support/Twig/AmountFormat.php b/app/Support/Twig/AmountFormat.php index ad712e781f..1a1a6a2abf 100644 --- a/app/Support/Twig/AmountFormat.php +++ b/app/Support/Twig/AmountFormat.php @@ -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;