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 6
6
7
7
- Allow passing explicit null values for optional fields of input objects
8
8
9
+ ### Fixed
10
+
11
+ - Treat empty env variable as undefined
12
+
9
13
## 1.20.0
10
14
11
15
### Added
Original file line number Diff line number Diff line change @@ -195,7 +195,8 @@ private static function parseEnvironmentVariables(array $options): array
195
195
// Read environment files
196
196
$ envVariableNames = (array ) $ envVariableNames ;
197
197
foreach ($ envVariableNames as $ envVariableName ) {
198
- if (null !== $ envVariableValue = EnvVar::get ($ envVariableName )) {
198
+ $ envVariableValue = EnvVar::get ($ envVariableName );
199
+ if (null !== $ envVariableValue && '' !== $ envVariableValue ) {
199
200
$ options [$ option ] = $ envVariableValue ;
200
201
201
202
break ;
You can’t perform that action at this time.
0 commit comments