Skip to content

Commit

Permalink
Fix rector
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Dec 7, 2024
1 parent 777f17e commit bf119c9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Twig/Extension/IntlExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ final class IntlExtension extends AbstractExtension
public function getFilters(): array
{
return [
new TwigFilter('sonata_language_name', [$this, 'getLanguageName']),
new TwigFilter('sonata_language_name', $this->getLanguageName(...)),
];
}

Expand Down
4 changes: 2 additions & 2 deletions src/Twig/Extension/SonataTranslationExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,14 @@ public function getTranslatableChecker(): TranslatableChecker
public function getTests(): array
{
return [
new TwigTest('translatable', [$this, 'isTranslatable']),
new TwigTest('translatable', $this->isTranslatable(...)),
];
}

public function getFilters(): array
{
return [
new TwigFilter('localeName', [$this, 'getLocaleName']),
new TwigFilter('localeName', $this->getLocaleName(...)),
];
}

Expand Down

0 comments on commit bf119c9

Please sign in to comment.