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

Skip to content

Commit 2ffb5c1

Browse files
authored
getEnv() default return array
1 parent 3c07197 commit 2ffb5c1

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
@@ -1083,7 +1083,7 @@ public function setWorkingDirectory(string $cwd): static
10831083
*/
10841084
public function getEnv(): array
10851085
{
1086-
return $this->env;
1086+
return $this->env ?? [];
10871087
}
10881088

10891089
/**

0 commit comments

Comments
 (0)