-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Env variables don't pass the configuration #22594
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
Comments
Related to #22151 i guess :) |
Yep, that's the same topic. This is not a bug, the exception says it perfectly: this is just not supported yet. |
Closing as duplicate. |
Isn't it slightly different? #22151 is more about being able to cast the env value whereas here it's about allowing a string in the case of an env var for a non-string node. #22151 would be a way to fix this issue of course, but we could think of a simpler fix: don't throw a type exception when encountering an env variable. |
If you have a configuration node with a non-string type, e.g.
IntegerNode
, and pass an env variable, even though the env variable will be resolved in an integer, the value won't pass the validation and throw an error when booting.e.g.:
or:
with:
will throw:
Issue reproduced on the repo: https://github.com/theofidry/symfony-22594
The text was updated successfully, but these errors were encountered: