We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e7ee37 commit a7fa38bCopy full SHA for a7fa38b
src/Watcher.php
@@ -125,13 +125,18 @@ public function restart($isStart = true)
125
$this->channel->pop();
126
$this->output->writeln('Start server ...');
127
128
- $descriptorspec = [
+ $descriptorSpec = [
129
0 => STDIN,
130
1 => STDOUT,
131
2 => STDERR,
132
];
133
134
- proc_open($this->option->getBin() . ' ' . BASE_PATH . '/' . $this->option->getCommand(), $descriptorspec, $pipes);
+ proc_open(
135
+ $this->option->getBin() . ' ' . BASE_PATH . '/' . $this->option->getCommand(),
136
+ $descriptorSpec,
137
+ $pipes,
138
+ env_vars: $_ENV
139
+ );
140
141
$this->output->writeln('Stop server success.');
142
$this->channel->push(1);
0 commit comments