Skip to content

How can I pass a null/empty env variable? #17

Description

@ntd1712

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: env
Filename: 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions