ezyang / htmlpurifier

Standards compliant HTML filter written in PHP
http://htmlpurifier.org
GNU Lesser General Public License v2.1
3.07k stars 327 forks source link

Typed property DOMAttr::$name must not be accessed before initialization #365

Closed freescout-helpdesk closed 1 year ago

freescout-helpdesk commented 1 year ago

ezyang/htmlpurifier v4.12.0 PHP 8.1

What can be the reason of the following erorr:

/www/html/vendor/ezyang/htmlpurifier/library/HTMLPurifier/Lexer/DOMLex.php:267, ErrorException(code: 0): Typed property DOMAttr::$name must not be accessed before initialization

Original issue

freescout-helpdesk commented 1 year ago

Answer: https://github.com/freescout-helpdesk/freescout/issues/2704#issuecomment-1427416273