0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-09-18 18:25:18 +00:00
htmlpurifier/tests
Tim Düsterhus 1db36fb09d
Fix some PHP 8.2 deprecations (#319)
* Define HTMLPurifier_Lexer::$_entity_parser property

This fixes a PHP 8.2 deprecation.

* Define HTMLPurifier_URIFilterHarness::$filter property

This fixes a PHP 8.2 deprecation.

* Define HTMLPurifier_AttrTransform_NameSync::$idDef property

This fixes a PHP 8.2 deprecation.

* Define HTMLPurifier_AttrTransform_NameSyncTest::$accumulator property

This fixes a PHP 8.2 deprecation.

* Define HTMLPurifier_AttrValidator_ErrorsTest::$language property

This fixes a PHP 8.2 deprecation.

* Define HTMLPurifier_ChildDef_List::$whitespace property

This fixes a PHP 8.2 deprecation.

* Do not modify incoming tokens in RemoveSpansWithoutAttributes

Previously the undefined property `->markForDeletion` was added to the incoming
tokens. This causes a deprecation in PHP 8.2. Fix this by storing to-be-deleted
tokens inside SplObjectStorage. In PHP 8 a WeakMap would be preferable, as that
prevents leaks if `handleEnd` is never called for the token.
2022-06-10 16:30:01 -04:00
..
FSTools PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
HTMLPurifier Fix some PHP 8.2 deprecations (#319) 2022-06-10 16:30:01 -04:00
PHPT PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
tmp Add vim modelines to all files. 2008-12-06 04:24:59 -05:00
CliTestCase.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
common.php Don't define __autoload; rely on spl_autoload_register 2018-11-11 16:55:01 -05:00
Debugger.php Don't use PHP4-style constructors 2016-03-16 17:09:41 -07:00
default_load.php Add one more test for SPL autoload defaults. 2011-12-25 02:58:51 -05:00
generate_mock_once.func.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
HTMLPurifierTest.php Make purifyArray work with empty array (#245) 2020-02-22 12:12:02 -05:00
index.php Recent PHPs default to display_error=0, override this in index.php 2019-07-14 14:04:12 -04:00
multitest.php Modernize some of the testing facilities. 2012-01-18 18:10:16 -05:00
path2class.func.php PSR-2 reformatting PHPDoc corrections 2013-08-17 22:27:26 -04:00
test_files.php Add vim modelines to all files. 2008-12-06 04:24:59 -05:00