src/Application/Process/ProcessBuilder.php
public function setEnv(string $name, ?string $value = null): ProcessBuilder
    {
        $this->environment[$name] = $value;

        return $this;
    }
public function setEnv(string $name, ?string $value = null): ProcessBuilder
    {
        $this->environment[$name] = $value;

        return $this;
    }
public function setEnv ( string $ name , ? string $ value = null ) : ProcessBuilder { $ this -> environment [ $ name ] = $ value ; return $ this ; }
Sets an environment variable

@param string      $name  The variable name
@param string|null $value The variable value

@return ProcessBuilder
Sets an environment variable