[HttpFoundation] fixed PHP warnings
[HttpFoundation] fixed PHP warnings


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