Closed biesbjerg closed 4 years ago
Twig's native format filter is being overwritten by: https://github.com/cakephp/twig-view/blob/e3e03ae99e3bc93ec481eed0a2b0cb92aac13d0b/src/Twig/Extension/NumberExtension.php#L43.
format
Number::format is already being made available by number_format, so maybe the other one could be removed? https://github.com/cakephp/twig-view/blob/e3e03ae99e3bc93ec481eed0a2b0cb92aac13d0b/src/Twig/Extension/NumberExtension.php#L40
Number::format
number_format
Would you like to submit a fix?
Opened a PR: https://github.com/cakephp/twig-view/pull/56
Closed in https://github.com/cakephp/twig-view/pull/56
Twig's native
format
filter is being overwritten by: https://github.com/cakephp/twig-view/blob/e3e03ae99e3bc93ec481eed0a2b0cb92aac13d0b/src/Twig/Extension/NumberExtension.php#L43.Number::format
is already being made available bynumber_format
, so maybe the other one could be removed? https://github.com/cakephp/twig-view/blob/e3e03ae99e3bc93ec481eed0a2b0cb92aac13d0b/src/Twig/Extension/NumberExtension.php#L40