Skip to content

Commit 703266a

Browse files
author
Guillaume Pédelagrabe
committed
Fix StreamOutput::doWrite().
1 parent 1f042b8 commit 703266a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Symfony/Component/Console/Output/StreamOutput.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ protected function doWrite($message, $newline)
7474
$message .= PHP_EOL;
7575
}
7676

77-
if (!is_resource($this->stream) || !is_string($message)) {
78-
// should never happen
77+
if (!is_string($message)) {
7978
throw new RuntimeException('Unable to write output.');
8079
}
8180
@fwrite($this->stream, $message);

0 commit comments

Comments
 (0)