Skip to content

Allowing APP_ENV to be an empty index #513

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
1 commit merged into from
Jan 5, 2019
Merged

Allowing APP_ENV to be an empty index #513

1 commit merged into from
Jan 5, 2019

Conversation

weaverryan
Copy link
Member

Q A
License MIT

Hi people!

Fixes #512

This happened after #501 was merged. Previously, code at the top of bootstrap.php guaranteed that the $_SERVER['APP_ENV'] key always existed. After that was removed, the code at the bottom needed to be updated to account for this.

I tested that this does fix the undefined index problem when using phpunit.

Cheers!

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request passes validation.

@ghost ghost merged commit 8f35a29 into symfony:master Jan 5, 2019
ghost pushed a commit that referenced this pull request Jan 5, 2019
@weaverryan weaverryan deleted the fix-bad-app-env-index branch January 5, 2019 16:08
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bootstrap.php breaks when running PHPUnit
3 participants