-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Add the name of the env to RuntimeException #37538
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
Conversation
@@ -79,7 +79,7 @@ public function getEnv(string $prefix, string $name, \Closure $getEnv) | |||
} | |||
|
|||
if (!isset($array[$key]) && !\array_key_exists($key, $array)) { | |||
throw new EnvNotFoundException(sprintf('Key "%s" not found in %s (resolved from "%s").', $key, json_encode($array), $next)); | |||
throw new EnvNotFoundException(sprintf('Key "%s" not found in "%s" (resolved from "%s").', $key, json_encode($array), $next)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please revert his one, that's a false positive
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nicolas-grekas fabbot.io told me so, but okay
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's exactly what Nicolas said: it was a false positive of fabbot.io. The tool is not 100% perfect.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, revert is done
how do we move on with this? Is there anything else I need to do, or can you merge the pull request |
Thank you @sFreezer. |
if you have the name of the env in the exception message it is much easier to find the error
from -> symfony/dependency-injection#20