File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 66
77- Allow passing explicit null values for optional fields of input objects
88
9+ ### Fixed
10+
11+ - Treat empty env variable as undefined
12+
913## 1.20.0
1014
1115### Added
Original file line number Diff line number Diff line change @@ -195,7 +195,8 @@ private static function parseEnvironmentVariables(array $options): array
195195 // Read environment files
196196 $ envVariableNames = (array ) $ envVariableNames ;
197197 foreach ($ envVariableNames as $ envVariableName ) {
198- if (null !== $ envVariableValue = EnvVar::get ($ envVariableName )) {
198+ $ envVariableValue = EnvVar::get ($ envVariableName );
199+ if (null !== $ envVariableValue && '' !== $ envVariableValue ) {
199200 $ options [$ option ] = $ envVariableValue ;
200201
201202 break ;
You can’t perform that action at this time.
0 commit comments