Skip to content

Commit

Permalink
Remove !\is_resource($this->stream).
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillaume Pédelagrabe committed Mar 26, 2020
1 parent ecec14c commit 711c873
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Console/Output/StreamOutput.php
Expand Up @@ -74,7 +74,7 @@ protected function doWrite($message, $newline)
$message .= PHP_EOL;
}

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

0 comments on commit 711c873

Please sign in to comment.