[HttpFoundation] simplified code
[HttpFoundation] simplified code


symfony/HttpFoundation,oswaldderiemaecker/HttpFoundation,nichdu/HttpFoundation,symfony/http-foundation,ygerasimov/HttpFoundation,mneuhaus/HttpFoundation