Skip to content

Commit

Permalink
Modernize code
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Aug 4, 2024
1 parent 0707f16 commit c7d57d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Extension/CoreExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public function getFilters(): array
new TwigFilter('filter', self::filter(...), ['needs_environment' => true]),
new TwigFilter('map', self::map(...), ['needs_environment' => true]),
new TwigFilter('reduce', self::reduce(...), ['needs_environment' => true]),
new TwigFilter('find', [self::class, 'find'], ['needs_environment' => true]),
new TwigFilter('find', self::find(...), ['needs_environment' => true]),

// string/array filters
new TwigFilter('reverse', self::reverse(...), ['needs_charset' => true]),
Expand Down

0 comments on commit c7d57d1

Please sign in to comment.