-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
Support Symfony 6 and drop Symfony 4 and PHP < 8.1 #88
Conversation
Let's remove support for SF4 |
8ef9203
to
ab7875f
Compare
@loevgaard it should be added a tag on https://github.com/Setono/DoctrineORMBatcherBundle to support Sf 6, the code on the main branch looks like supports it already. |
ed17005
to
9a05ccb
Compare
@loevgaard here we are! |
Crazy! |
@@ -42,7 +42,7 @@ protected function getAlias(QueryBuilder $queryBuilder): string | |||
throw new InvalidArgumentException('This filter only works with one root alias'); | |||
} | |||
|
|||
return $aliases[0]; | |||
return reset($aliases); |
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.
Is this faster or why did you change this? :)
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.
Because of a Psalm error.. The index "0" could not exist..
1ab30e7
to
4725765
Compare
5058bee
to
9452229
Compare
This is great work, @lruozzi9. Did you test it in your application? |
Yes, it is already in production! |
Hey FYI, I noticed that the support branch composer.json allows for: "symfony/http-foundation": "^5.4.7 || ^6.0". However, in the ProcessFeedAction an assert has been added on line 45 for "Symfony\Component\HttpFoundation\Session\FlashBagAwareSessionInterface" |
9452229
to
6583d36
Compare
Hi, @kenny-inventis! Thank you so much for your feedback. I updated the required Symfony version to 6.3 as 6.2 or lower are already not maintained. |
@loevgaard can you consider releasing a tag with these changes? We are currently using that in two production websites 😅 |
@lruozzi9: Argh, didn't notice before now. I have clients still running PHP 7.4 and you changed the PHP requirement. Could you revert to |
Shouldn't they just stay with older plugin version? Sylius requires |
Hi @lruozzi9! To make the module Sf6 compatible, you'll need to modify the route definition in the Since version 4.1, the "app.my_controller:myAction" syntax has been deprecated, cf symfony/symfony#26085 |
This needs before #87