From 711c873f86cf31b0f42e4d5b9f4ca46f4ade96df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guillaume=20P=C3=A9delagrabe?= Date: Thu, 26 Mar 2020 15:25:37 +0100 Subject: [PATCH] Remove !\is_resource($this->stream). --- src/Symfony/Component/Console/Output/StreamOutput.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Console/Output/StreamOutput.php b/src/Symfony/Component/Console/Output/StreamOutput.php index e876dabfee65d..4fe3f221d95e4 100644 --- a/src/Symfony/Component/Console/Output/StreamOutput.php +++ b/src/Symfony/Component/Console/Output/StreamOutput.php @@ -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.'); }