-
Notifications
You must be signed in to change notification settings - Fork 702
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: Sensio extra bundle TemplateListener invocation before view response listener and serialization #2410
Conversation
Failing test may be because of deprecation 🤔 |
Just update the deprecation helper config. At some point the test app/bundle configs need some cleanup so the baseline isn't so high, but a lot of it's unavoidable (especially with the Symfony 6.4 builds and the annotations deprecations). <env name="SYMFONY_DEPRECATIONS_HELPER" value="max[self]=110&max[indirect]=230"/> That looks to be the right numbers based on the failing builds. |
IMO it doesn't need to go that in-depth. The functional tests IMO really just need to be in-depth enough to cover the "make sure it doesn't break with |
Hi Michael, Thanks for the env hint, I forgot about it. I am more used to gitlab and our configuration don't fail when the deprecation are raised. I added the functional test and have to raise the max self deprecation due to it. I let the indirect deprecation to its original value as it was higher than your recommendation. Let me know if I have to set them exactly on the max number I found on the actions (112 and 230) Thanks for your help. |
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.
Thank you 🙏
Hi,
As discussed in #2400 and pointed in #2409 (thanks for the bundles.php, not sure I would have found it without a lot of struggles 😅 ) here is the fix and test.
I relied on the existing redirect test as this existing one and the one you provided trigger the same error. A test idea which could cover more cases (and may be more common) would be that the controller returns an object to be serialized but it would require to add symfony serializer or jms into the loaded bundles and provide the necessary configuration I think.
Let me know if I really should add the new test you provide or a modified one which could return an
\stdClass
which should be serialized via the view response listener.Thanks @mbabker