Skip to content

Commit 9051f61

Browse files
author
Martin Brecht-Precht
committed
Return type bug fixing.
1 parent fb8218c commit 9051f61

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Handler/CommonmarkHandler.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -793,8 +793,11 @@ private function startLine()
793793
* @param string $string
794794
* @return $this
795795
*/
796-
private function append(string $string)
796+
private function append(?string $string)
797797
{
798+
if ($string === null) {
799+
return $this;
800+
}
798801
$this->output .= $string;
799802
return $this;
800803
}

0 commit comments

Comments
 (0)