Skip to content

Commit

Permalink
Merge pull request #244 from francoism90/main
Browse files Browse the repository at this point in the history
fix: Passing null to parameter #1 ($string) of type string is deprecated
  • Loading branch information
sebastiandedeyne authored Oct 18, 2024
2 parents 03f898e + b6090c9 commit 167e5b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BaseElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public function prependChild($children, $mapper = null)
*/
public function text($text)
{
return $this->html(htmlentities($text, ENT_QUOTES, 'UTF-8', false));
return $this->html(htmlentities($text ?? '', ENT_QUOTES, 'UTF-8', false));
}

/**
Expand Down

0 comments on commit 167e5b8

Please sign in to comment.