$attr_includes param in HTMLModule::addElement() can be a string, and this is how it's mostly used in the codebase (e.g. here).
The $contents param in HTMLModule::addElement() can be an instance of HTMLPurifier_ChildDef (as noted here), and this should also be reflected in phpdoc.
Additionally there is a minor fix to phpdoc of AttrDef_HTML_Bool, as the name of a boolean attribute is a string, not a bool (example usage here).
This PR fixes a few errors in phpdoc params:
$attr_includes
param inHTMLModule::addElement()
can be a string, and this is how it's mostly used in the codebase (e.g. here).The
$contents
param inHTMLModule::addElement()
can be an instance ofHTMLPurifier_ChildDef
(as noted here), and this should also be reflected in phpdoc.Additionally there is a minor fix to phpdoc of
AttrDef_HTML_Bool
, as the name of a boolean attribute is astring
, not abool
(example usage here).