You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug #42289 [HttpFoundation] Fixed type mismatch (Toflar)
This PR was squashed before being merged into the 4.4 branch.
Discussion
----------
[HttpFoundation] Fixed type mismatch
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | #42290
| License | MIT
| Doc PR | -
Fixes
> Argument 1 passed to str_contains() must be of the type string, null given, called in /.../vendor/symfony/http-foundation/Response.php on line 327
in case there's no `cache-control` response header. This doesn't happen by default as the `Response` is initialized with one by default but any class extending from it can adjust that. Technically speaking, it's not disallowed to have no `cache-control` header set.
Want me to add a test for that? :)
Commits
-------
31591c3 [HttpFoundation] Fixed type mismatch
0 commit comments