-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Fix deprecation in ForbiddenFilterRule.php #310
Conversation
Shouldn't the same be done for FunctionExpression too ?
No, I add to extends the lower bound support of twig/twig for drupal and some others CMS so i'll keep it. We need to support both, with something like
|
Thanks. It turns out it can be done much simpler 😁 |
For the phpstan issue it will be
|
I guess not, the name attribute was only added in the latest version. Force pushed for another try. This looks better? |
You need #311 and to rebase after |
What about FunctionExpression ? Should it be fixed too ? Also @ruudk , I don't have any deprecation when running my tests, I would be interested if you know how to have them displayed by PHPUnit to confirm
|
Good idea. Let me try to enable that first, so you are aware of these deprecations automatically. |
We need to install the Symfony PHPUnit Bridge in order to get the deprecations to fail the test. But this also immediately will give you a problem for the future: the Symfony PHPUnit Bridge is not compatible with PHPUnit 10 / 11. See symfony/symfony#49069. But luckily, PHPUnit 11.2 also has this functionality now. But for Symfony (not related to you I guess) there is another issue: symfony/symfony#53812 So what to do? Use the PHPUnit Bridge for now and enable the deprecations helper? |
I will wait Phpunit 11.2 then |
That already uses |
Ok, can you just rebase main @ruudk |
> Deprecate the `filter` node of `FilterExpression` Needed for Twig 3.12.0 See twigphp/Twig#4184
Thanks @ruudk, Do you have other findings related to the 3.12 version or should i release soon ? |
Not that I know. It worked when we upgraded this morning. But since I fixed a few deprecations in our project I went to see if there were any deprecations here. So I guess all just works fine |
Needed for Twig 3.12.0
See twigphp/Twig#4184
Do we need to bump the minimum required Twig version?