Skip to content

Conversation

@nicolas-grekas
Copy link
Member

Q A
Branch? 5.3
Bug fix? yes
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

Providing an empty env leads to an undefined behavior, better forbid it. This will fail at compile time, so it should be safe; but still submitting on 5.3 for extra safety.

@nicolas-grekas nicolas-grekas changed the title [HttpKernel] Throw when HttpKernel is create and the env is empty [HttpKernel] Throw when HttpKernel is created and the env is empty May 24, 2021
@fabpot
Copy link
Member

fabpot commented May 24, 2021

Thank you @nicolas-grekas.

@fabpot fabpot merged commit 7e9dbec into symfony:5.3 May 24, 2021
@nicolas-grekas nicolas-grekas deleted the hk-empty-env branch May 27, 2021 13:00
@fabpot fabpot mentioned this pull request May 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants