Skip to content

Commit

Permalink
Cli::serializeComponent does not return anything
Browse files Browse the repository at this point in the history
It (indirectly) writes to stdout by itself.
  • Loading branch information
mstilkerich committed Jan 16, 2022
1 parent aae63ef commit fb706cf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/Cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -456,10 +456,7 @@ protected function convert($vObj)
*/
protected function color($vObj)
{
$text = $this->serializeComponent($vObj);
if (isset($text)) {
fwrite($this->stdout, $text);
}
$this->serializeComponent($vObj);
}

/**
Expand Down

0 comments on commit fb706cf

Please sign in to comment.