Skip to content

Commit

Permalink
Proper null coalescing for userland readline output
Browse files Browse the repository at this point in the history
Fixes #754
  • Loading branch information
bobthecow committed Jan 28, 2023
1 parent 9f7911d commit 3089d4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Readline/Hoa/ConsoleOutput.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public function writeLine(string $line)
*/
public function writeAll(string $string)
{
return $this->write($string ?: '', \strlen($string ?: ''));
return $this->write($string ?? '', \strlen($string ?? ''));
}

/**
Expand Down

0 comments on commit 3089d4a

Please sign in to comment.