-
Notifications
You must be signed in to change notification settings - Fork 94
[symfony 7.3] Add GetFiltersToAsTwigFilterAttributeRector to migrate #[TwigFilter] #761
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -8,4 +8,5 @@ | |||
|
|||
return static function (RectorConfig $rectorConfig): void { | |||
$rectorConfig->import(__DIR__ . '/symfony73/symfony73-console.php'); | |||
$rectorConfig->import(__DIR__ . '/symfony73/symfony73-twig-bundle.php'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this needs to be registered in Symfony7SetProvider as well below this:
rector-symfony/src/Set/SetProvider/Symfony7SetProvider.php
Lines 89 to 95 in 4bc47c0
new ComposerTriggeredSet( | |
SetGroup::SYMFONY, | |
'symfony/console', | |
'7.3', | |
__DIR__ . '/../../../config/sets/symfony/symfony7/symfony73/symfony73-console.php' | |
), | |
]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if ($secondArg->value instanceof MethodCall && $secondArg->value->isFirstClassCallable()) { | ||
throw new ShouldNotHappenException('Not supported yet'); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the syntax seems should be:
new \Twig\TwigFilter('some_filter', $this->localMethod(...)),
I will look into it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I created PR:
for it.
No description provided.