Skip to content

Commit

Permalink
Fix StreamOutput::doWrite().
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Pédelagrabe committed Mar 26, 2020
1 parent 1f042b8 commit 703266a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Symfony/Component/Console/Output/StreamOutput.php
Expand Up @@ -74,8 +74,7 @@ protected function doWrite($message, $newline)
$message .= PHP_EOL;
}

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

0 comments on commit 703266a

Please sign in to comment.