We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 205daed commit 641d229Copy full SHA for 641d229
src/Helper/Shell.php
@@ -80,7 +80,7 @@ protected function setInput()
80
81
protected function updateProcessStatus()
82
{
83
- if (self::STATE_STARTED !== $this->state) {
+ if ($this->state !== self::STATE_STARTED) {
84
return;
85
}
86
@@ -120,8 +120,6 @@ public function execute()
120
121
public function getState()
122
123
- $this->updateProcessStatus();
124
-
125
return $this->state;
126
127
@@ -166,7 +164,8 @@ public function stop()
166
164
\proc_close($this->process);
167
165
168
169
- $this->state = self::STATE_TERMINATED;
+ $this->state = self::STATE_TERMINATED;
+
170
$this->exitCode = $this->processStatus['exitcode'];
171
172
return $this->exitCode;
0 commit comments