We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4886c12 commit ad7c562Copy full SHA for ad7c562
src/Utils/Html.php
@@ -573,7 +573,7 @@ final public function getText(): string
573
/**
574
* Adds new element's child.
575
*/
576
- final public function addHtml(mixed $child): static
+ final public function addHtml(HtmlStringable|string $child): static
577
{
578
return $this->insert(null, $child);
579
}
@@ -582,7 +582,7 @@ final public function addHtml(mixed $child): static
582
583
* Appends plain-text string to element content.
584
585
- public function addText(mixed $text): static
+ public function addText(\Stringable|string $text): static
586
587
if (!$text instanceof HtmlStringable) {
588
$text = htmlspecialchars((string) $text, ENT_NOQUOTES, 'UTF-8');
0 commit comments