diff --git a/src/Symfony/Component/Console/Output/StreamOutput.php b/src/Symfony/Component/Console/Output/StreamOutput.php index de5f62404312e..f90a0e7e41758 100644 --- a/src/Symfony/Component/Console/Output/StreamOutput.php +++ b/src/Symfony/Component/Console/Output/StreamOutput.php @@ -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);