Skip to content

Commit a5f41a6

Browse files
authored
Removed env_vars to keep the child process environment variables consistent with the parent process (#7105)
1 parent b72c9b9 commit a5f41a6

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Watcher.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,9 @@ public function restart($isStart = true)
132132
];
133133

134134
proc_open(
135-
$this->option->getBin() . ' ' . BASE_PATH . '/' . $this->option->getCommand(),
136-
$descriptorSpec,
137-
$pipes,
138-
env_vars: $_ENV
135+
command: $this->option->getBin() . ' ' . BASE_PATH . '/' . $this->option->getCommand(),
136+
descriptor_spec: $descriptorSpec,
137+
pipes: $pipes
139138
);
140139

141140
$this->output->writeln('Stop server success.');

0 commit comments

Comments
 (0)