html
html copied to clipboard
Use `new %TagClass%()` instead of `%TagClass%::tag()`
With PHP 8.4 (new MyClass()->method() without parentheses) single static constructor has lost its meaning.
Suggestion for NormalTag, VoidTag and CustomTag:
- make constructor public;
- deprecate static constructor.
How about consistency? Would it be the same for all other tags?
How about consistency? Would it be the same for all other tags?
All other tags extends NormalTag or VoidTag.