Skip to content

Commit 3089d4a

Browse files
committed
Proper null coalescing for userland readline output
Fixes #754
1 parent 9f7911d commit 3089d4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Readline/Hoa/ConsoleOutput.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ public function writeLine(string $line)
176176
*/
177177
public function writeAll(string $string)
178178
{
179-
return $this->write($string ?: '', \strlen($string ?: ''));
179+
return $this->write($string ?? '', \strlen($string ?? ''));
180180
}
181181

182182
/**

0 commit comments

Comments
 (0)