Skip to content

Commit

Permalink
Follow suggested coding standards
Browse files Browse the repository at this point in the history
Co-authored-by: Nicolas Grekas <nicolas.grekas@gmail.com>
  • Loading branch information
aboks and nicolas-grekas committed Mar 12, 2024
1 parent af0f127 commit b6638dd
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ public function terminate(): void
fclose($this->out);
$err = stream_get_contents($this->err);
fclose($this->err);
$exitCode = proc_close($this->stream);
if (0 !== $exitCode) {
if (0 !== $exitCode = proc_close($this->stream)) {
throw new TransportException('Process failed with exit code '.$exitCode.': '.$out.$err);
}
}
Expand Down

0 comments on commit b6638dd

Please sign in to comment.