Conversation
| * @param Html|string Html node or raw HTML string | ||
| * @return self | ||
| */ | ||
| public function add($child) |
There was a problem hiding this comment.
Maybe only allow Html instance?
There was a problem hiding this comment.
Not sure that's a good idea. How would you provide custom HTML as string?
There was a problem hiding this comment.
You would need to wrap it as an Html instance. But I think that the current solution is better.
|
Other places which may lead to confusion:
|
|
|
||
| /** | ||
| * @deprecated | ||
| */ |
There was a problem hiding this comment.
I like how is the add() short. What about to allow HTML instance and strings consider as a text? Not sure how to warn about change.
|
@JanTvrdik |
https://twitter.com/jakubvrana/status/733655999618404352