🛠Lightweight utilities for string & array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.
2.01k
stars
149
forks
source link
Incorrect argument type definition in `addHtml` method #313
Open
mskocik opened 5 months ago
Version: latest
Bug Description
Method
addHtml()
hasmixed
type definition, which is incorrect. In fact it really expectsHtmlStringable|string
, because of inner call of->insert()
.~The same applies to
addText()
.~Steps To Reproduce
Html::el('span')->addHtml(0); // results in following TypeError
Expected Behavior
No type error being thrown