Sets the array of environment variables to start the child process with.
@psalm-param array<string, string> $env
public function setEnv(array $env) : void { $this->env = $env; }