Skip to content

Commit

Permalink
tweak: initialise with existing environment
Browse files Browse the repository at this point in the history
closes #50
  • Loading branch information
g105b committed May 16, 2024
1 parent e2964f4 commit 4609225
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Process.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,13 @@ class Process {
protected array $status;
protected bool $isBlocking = false;
/** @var array<string, string> */
protected array $env = [];
protected array $env;

public function __construct(string...$command) {
$this->command = $command;
$this->cwd = getcwd();
$this->pipes = [];
$this->env = getenv();
}

public function __destruct() {
Expand Down

0 comments on commit 4609225

Please sign in to comment.