[HttpFoundation] merge symfony/symfony#11009 into master
feature #11068 [HttpFoundation] #11009 for master (Tobion)

This PR was merged into the 2.3-dev branch.

Discussion
----------

[HttpFoundation] #11009 for master

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT

Commits
-------

8d375ca [HttpFoundation] merge symfony/symfony#11009 into master