Skip to content

Commit 7c5a9f4

Browse files
committed
Fix "htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated"
1 parent c2f8724 commit 7c5a9f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/php/com/handlebarsjs/DefaultContext.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function asRendering($closure, $node, $options= [], $start= '{{', $end= '
5252
foreach ($options as $key => $option) {
5353
$pass[$key]= $this->isCallable($option) ? $option($node, $this, []) : $option;
5454
}
55-
return $closure($node, $this, $pass);
55+
return $closure($node, $this, $pass) ?? '';
5656
}
5757

5858
/**

0 commit comments

Comments
 (0)