Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5da4b8c

Browse files
asika32764nicolas-grekas
authored andcommitted
getEnv() default return array
1 parent 464385f commit 5da4b8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Process/Process.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1163,7 +1163,7 @@ public function setWorkingDirectory($cwd)
11631163
*/
11641164
public function getEnv()
11651165
{
1166-
return $this->env;
1166+
return $this->env ?? [];
11671167
}
11681168

11691169
/**

0 commit comments

Comments
 (0)