-
-
Notifications
You must be signed in to change notification settings - Fork 154
Open
@mskocik
Description
Version: latest
Bug Description
Method addHtml() has mixed type definition, which is incorrect. In fact it really expects HtmlStringable|string, because of inner call of ->insert().
(削除) The same applies to addText(). (削除ここまで)
Steps To Reproduce
Html::el('span')->addHtml(0); // results in following TypeError
TypeError Nette\Utils\Html::insert(): Argument #2 ($child) must be of type Nette\HtmlStringable|string, int given
Expected Behavior
No type error being thrown
Metadata
Metadata
Assignees
Labels
No labels