Skip to content
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

Added support of empty strings #98

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion Processor.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ private function getEnvValues(array $envMap)
$params = array();
foreach ($envMap as $param => $env) {
$value = getenv($env);
if ($value) {
if ($value !== false) {
$params[$param] = Inline::parse($value);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ parameters:
foo: bar
boolean: false
another: ~
empty: nonempty
nested:
foo: bar
bar: baz
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ parameters:
foo: foobar
boolean: true
another: null
empty: ''
nested:
foo: env_foo
bar:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ config:
foo: IC_TEST_FOO
nested: IC_TEST_NESTED
another: IC_TEST_NOT_SET
empty: IC_TEST_EMPTY

environment:
IC_TEST_BOOL: 'true'
IC_TEST_FOO: 'foobar'
IC_TEST_NESTED: '{foo: env_foo, bar: [env, test, null]}'
IC_TEST_EMPTY: ''