Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 2ffb5c1

Browse filesBrowse files
authored
getEnv() default return array
1 parent 3c07197 commit 2ffb5c1
Copy full SHA for 2ffb5c1

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/Symfony/Component/Process/Process.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Process/Process.php
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.