Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 703266a

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

File tree

1 file changed

+1
-2
lines changed
Filter options

1 file changed

+1
-2
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Console/Output/StreamOutput.php
+1-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.