-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[HttpFoundation] Fixed type mismatch #42289
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
Sure, why not. 🙂 |
That was kind of a stupid question, I was just being lazy 🙈 Test is here now :) |
Thank you @Toflar. |
What about 5.3 branch? Is this patch going to be applied to 5.3? |
Yes. |
I guess this can be reverted, as it was actually a bug with the |
@bobvandevijver Actually, we need this change again for PHP 8.1 as passing |
Yes. Up for a PR? 🙂 |
Thanks for the fix. I also had this error with Sf 5.3.5. 😉 |
Fixes
in case there's no
cache-control
response header. This doesn't happen by default as theResponse
is initialized with one by default but any class extending from it can adjust that. Technically speaking, it's not disallowed to have nocache-control
header set.Want me to add a test for that? :)