-
Notifications
You must be signed in to change notification settings - Fork 12
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
How can I pass a null/empty env variable? #17
Comments
@ntd1712 Try There may be an issue with trying to pass empty key/values as variables, I'll look into this. |
Wait actually, are you loading the |
Second try with Look at your file src/vendor/m1/vars/src/Variables/VariableProvider.php [line 175], we will see the line where error occurred: If we replace it with the following, then it works! =): |
So is this bug being fixed or ? |
Not as of yet, don’t really do much php these days. Happy to take pull requests! |
I currently use "m1/vars": "~1.1"; how can I pass a null/empty env variable?
For example, I have the following settings:
.env file:
DB_PASSWORD=
settings.yml:
password: '%^DB_PASSWORD%'
Setting this will raise a following exception:
An uncaught Exception was encountered
Type: InvalidArgumentException
Message: Variable has not been defined as a
DB_PASSWORD
: envFilename: C:\wamp\www\outsource\ci3ng\src\vendor\m1\vars\src\Variables\VariableProvider.php
Line Number: 179
Backtrace:
File: C:\wamp\www\outsource\ci3ng\src\vendor\m1\vars\src\Variables\VariableProvider.php
Line: 152
Function: checkVariableExists
The text was updated successfully, but these errors were encountered: