htmlpurifier-html5
htmlpurifier-html5 copied to clipboard
PHP 8.4
Hi,
Just wondering if there's anything interesting coming in PHP 8.4 as far as this wonderful library is concerned?
Cheers
At least, there is a deprecated in PHP 8.4.0alpha4 here https://github.com/xemlock/htmlpurifier-html5/blob/0105fef4434915ae66c31d00af2bd362623f116d/library/HTMLPurifier/HTML5Config.php#L65
Deprecated: HTMLPurifier_HTML5Config::__construct(): Implicitly marking parameter $parent as nullable is deprecated, the explicit nullable type must be used instead in [...]library/HTMLPurifier/HTML5Config.php on line 65
- public function __construct(HTMLPurifier_ConfigSchema $schema, HTMLPurifier_PropertyList $parent = null)
+ public function __construct(HTMLPurifier_ConfigSchema $schema, ?HTMLPurifier_PropertyList $parent = null)
Hi! Thanks for pointing that out. I'm planning on making the code PHP 8.4 compatible, as well as use new DOM parsing abilities provided by DOM\HTMLDocument.
It would be great to have a release with PHP 8.4 support initially, so we don't depend on master in stable projects.
@xemlock Are there any plans to create a tag for those changes with PHP8.4 support?
@xemlock would it be possible to make a tag? ... thanks :))
@xemlock Thanks for the tool, there is a possibility of a tag with the PHP 8.4 fixes, thks.