MDL-78143 lib: Added class properties in html purifier
In PHP 8.2 and later, setting a value to an undeclared class property is deprecated and emits a deprecation notice. So we need to add missing class properties that still need to be declared.
This commit is contained in:
@@ -32,6 +32,11 @@ class HTMLPurifier_Printer_ConfigForm extends HTMLPurifier_Printer
|
||||
*/
|
||||
protected $compress = false;
|
||||
|
||||
/**
|
||||
* @var HTMLPurifier_Config
|
||||
*/
|
||||
protected $genConfig;
|
||||
|
||||
/**
|
||||
* @param string $name Form element name for directives to be stuffed into
|
||||
* @param string $doc_url String documentation URL, will have fragment tagged on
|
||||
|
||||
@@ -14,3 +14,7 @@ Description of HTML Purifier library import into Moodle
|
||||
HTMLPurifier.path.php
|
||||
* add locallib.php with Moodle specific extensions to /lib/htmlpurifier/
|
||||
* add this readme_moodle.txt to /lib/htmlpurifier/
|
||||
|
||||
Local changes:
|
||||
* 2023-06-06 Applied patch https://github.com/ezyang/htmlpurifier/pull/346 to avoid PHP 8.2 deprecations.
|
||||
See MDL-78143 for more details.
|
||||
Reference in New Issue
Block a user