8000
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 c57e4e1 commit 428dea6Copy full SHA for 428dea6
src/Symfony/Component/Console/Output/StreamOutput.php
@@ -70,7 +70,11 @@ public function getStream()
70
*/
71
protected function doWrite($message, $newline)
72
{
73
- if (false === @fwrite($this->stream, $message) || ($newline && (false === @fwrite($this->stream, PHP_EOL)))) {
+ if ($newline) {
74
+ $message .= PHP_EOL;
75
+ }
76
+
77
+ if (false === @fwrite($this->stream, $message)) {
78
// should never happen
79
throw new RuntimeException('Unable to write output.');
80
}
0 commit comments