Skip to content

Commit b6638dd

Browse files
Follow suggested coding standards
Co-authored-by: Nicolas Grekas <nicolas.grekas@gmail.com>
1 parent af0f127 commit b6638dd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Symfony/Component/Mailer/Transport/Smtp/Stream/ProcessStream.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ public function terminate(): void
5656
fclose($this->out);
5757
$err = stream_get_contents($this->err);
5858
fclose($this->err);
59-
$exitCode = proc_close($this->stream);
60-
if (0 !== $exitCode) {
59+
if (0 !== $exitCode = proc_close($this->stream)) {
6160
throw new TransportException('Process failed with exit code '.$exitCode.': '.$out.$err);
6261
}
6362
}

0 commit comments

Comments
 (0)