File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ class Shell
5656 protected array $ descriptors ;
5757
5858 /** @var array An array of environment variables */
59- protected array $ env = [] ;
59+ protected ? array $ env = null ;
6060
6161 /** @var int Exit code of the process once it has been terminated */
6262 protected ?int $ exitCode = null ;
@@ -166,12 +166,12 @@ protected function checkTimeout(): void
166166
167167 public function setOptions (
168168 string $ cwd = null ,
169- array $ env = null ,
169+ ? array $ env = null ,
170170 float $ timeout = null ,
171171 array $ otherOptions = []
172172 ): self {
173173 $ this ->cwd = $ cwd ;
174- $ this ->env = $ env ?? [] ;
174+ $ this ->env = $ env ;
175175 $ this ->processTimeout = $ timeout ;
176176 $ this ->otherOptions = $ otherOptions ;
177177
You can’t perform that action at this time.
0 commit comments