Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix creation of dynamic property notices on PHP 8.2 #333

Merged
merged 1 commit into from
Sep 6, 2022

Conversation

bytestream
Copy link
Contributor

Not really sure that this is the best way to handle it, but it does the trick 🤷

# php tests/index.php 
All HTML Purifier tests on PHP 8.2.0RC1
Exception 1!
Unexpected PHP Error [Creation of dynamic property HTMLPurifier_DefinitionTestable::$info_random is deprecated] severity [8192] in [/v/tests/HTMLPurifier/DefinitionCache/SerializerTest.php line 41]
        in test
        in HTMLPurifier_DefinitionCache_SerializerTest
Exception 2!
Unexpected PHP Error [Creation of dynamic property HTMLPurifier_DefinitionTestable::$info_random is deprecated] severity [8192] in [/v/library/HTMLPurifier/DefinitionCache/Serializer.php line 73]
        in test
        in HTMLPurifier_DefinitionCache_SerializerTest
Exception 3!
Unexpected PHP Error [Creation of dynamic property HTMLPurifier_DefinitionTestable::$info_random is deprecated] severity [8192] in [/v/library/HTMLPurifier/DefinitionCache/Serializer.php line 73]
        in test
        in HTMLPurifier_DefinitionCache_SerializerTest
Exception 4!
Unexpected PHP Error [Creation of dynamic property HTMLPurifier_DefinitionTestable::$info_random is deprecated] severity [8192] in [/v/library/HTMLPurifier/DefinitionCache/Serializer.php line 73]
        in test
        in HTMLPurifier_DefinitionCache_SerializerTest
Exception 5!
Unexpected PHP Error [Creation of dynamic property HTMLPurifier_DefinitionTestable::$info_candles is deprecated] severity [8192] in [/v/tests/HTMLPurifier/DefinitionCacheHarness.php line 29]
        in test_flush
        in HTMLPurifier_DefinitionCache_SerializerTest
Exception 6!
Unexpected PHP Error [Creation of dynamic property HTMLPurifier_DefinitionTestable::$info_candles is deprecated] severity [8192] in [/v/tests/HTMLPurifier/DefinitionCacheHarness.php line 29]
        in test_flush
        in HTMLPurifier_DefinitionCache_SerializerTest
Exception 7!
Unexpected PHP Error [Creation of dynamic property HTMLPurifier_DefinitionTestable::$info_candles is deprecated] severity [8192] in [/v/tests/HTMLPurifier/DefinitionCacheHarness.php line 29]
        in test_flush
        in HTMLPurifier_DefinitionCache_SerializerTest
Exception 8!
Unexpected PHP Error [Creation of dynamic property HTMLPurifier_DefinitionTestable::$info_candles is deprecated] severity [8192] in [/v/library/HTMLPurifier/DefinitionCache/Serializer.php line 73]
        in test_flush
        in HTMLPurifier_DefinitionCache_SerializerTest
Exception 9!
Unexpected PHP Error [Creation of dynamic property HTMLPurifier_DefinitionTestable::$info_candles is deprecated] severity [8192] in [/v/library/HTMLPurifier/DefinitionCache/Serializer.php line 73]
        in test_flush
        in HTMLPurifier_DefinitionCache_SerializerTest
Exception 10!
Unexpected PHP Error [Creation of dynamic property HTMLPurifier_DefinitionTestable::$info_candles is deprecated] severity [8192] in [/v/library/HTMLPurifier/DefinitionCache/Serializer.php line 73]
        in test_flush
        in HTMLPurifier_DefinitionCache_SerializerTest
Exception 11!
Unexpected PHP Error [Creation of dynamic property HTMLPurifier_DefinitionTestable::$info is deprecated] severity [8192] in [/v/tests/HTMLPurifier/DefinitionCacheHarness.php line 29]
        in testCleanup
        in HTMLPurifier_DefinitionCache_SerializerTest
Exception 12!
Unexpected PHP Error [Creation of dynamic property HTMLPurifier_DefinitionTestable::$info is deprecated] severity [8192] in [/v/tests/HTMLPurifier/DefinitionCacheHarness.php line 29]
        in testCleanup
        in HTMLPurifier_DefinitionCache_SerializerTest
Exception 13!
Unexpected PHP Error [Creation of dynamic property HTMLPurifier_DefinitionTestable::$info is deprecated] severity [8192] in [/v/library/HTMLPurifier/DefinitionCache/Serializer.php line 73]
        in testCleanup
        in HTMLPurifier_DefinitionCache_SerializerTest
Exception 14!
Unexpected PHP Error [Creation of dynamic property HTMLPurifier_DefinitionTestable::$info is deprecated] severity [8192] in [/v/tests/HTMLPurifier/DefinitionCacheHarness.php line 29]
        in testCleanupOnlySameID
        in HTMLPurifier_DefinitionCache_SerializerTest
Exception 15!
Unexpected PHP Error [Creation of dynamic property HTMLPurifier_DefinitionTestable::$info is deprecated] severity [8192] in [/v/tests/HTMLPurifier/DefinitionCacheHarness.php line 29]
        in testCleanupOnlySameID
        in HTMLPurifier_DefinitionCache_SerializerTest
Exception 16!
Unexpected PHP Error [Creation of dynamic property HTMLPurifier_DefinitionTestable::$info is deprecated] severity [8192] in [/v/library/HTMLPurifier/DefinitionCache/Serializer.php line 73]
        in testCleanupOnlySameID
        in HTMLPurifier_DefinitionCache_SerializerTest
Exception 17!
Unexpected PHP Error [Creation of dynamic property HTMLPurifier_DefinitionTestable::$info is deprecated] severity [8192] in [/v/library/HTMLPurifier/DefinitionCache/Serializer.php line 73]
        in testCleanupOnlySameID
        in HTMLPurifier_DefinitionCache_SerializerTest
Exception 18!
Unexpected PHP Error [Creation of dynamic property HTMLPurifier_DefinitionTestable::$info is deprecated] severity [8192] in [/v/library/HTMLPurifier/DefinitionCache/Serializer.php line 73]
        in testCleanupOnlySameID
        in HTMLPurifier_DefinitionCache_SerializerTest
FAILURES!!!
Test cases run: 221/221, Passes: 2794, Failures: 0, Exceptions: 18

@ezyang ezyang merged commit 36e0660 into ezyang:master Sep 6, 2022
@bytestream bytestream deleted the dynamic-property branch September 7, 2022 08:23
ezyang added a commit that referenced this pull request Sep 18, 2022
* Add semantic release

* fix typo

* split from matrix

* remove only on push

* remove npm plugin

* write changelog to NEWS

* list assets to include in git commit

* fix update-for-release

* lint pr title

* split release into separate workflow that runs manually

* revert ci.yml changes

* remove references to WHATSNEW

* Fix #322 - PHP 8.1 deprecation notice in HostBlacklist URIFilter (#323)

* Replace 8.1-deprecated utf8_ funcs with mbstring (#326)

* Treat PHP version numbers as strings in GitHub Actions (#327)

YAML will try to interpret numeric values as numbers, leading to `8.0` being
interpreted as `8` instead of `'8.0'`.

This doesn't result in a functional change, but cleans up the output of the
jobs a little (e.g. in the title line).

* Update to `actions/checkout@v3` (#328)

This does not introduce any functional difference and is intended as a
future-proofing change.

see https://github.com/actions/checkout/releases/tag/v3.0.0

* Fix test selection logic in tests/test_files.php (#329)

Selecting the `fstools` tests also executed the `htmlt` tests.

* Fix some more PHP 8.2 deprecations (#330)

* Define HTMLPurifier_AttrTransform_SafeParam::$wmode

This fixes a PHP 8.2 deprecation.

* Define HTMLPurifier_DefinitionCache_DecoratorHarness::$cache

This fixes a PHP 8.2 deprecation.

* Define HTMLPurifier_DefinitionCache_DecoratorHarness::$mock

This fixes a PHP 8.2 deprecation.

* Define HTMLPurifier_DefinitionCache_DecoratorHarness::$def

This fixes a PHP 8.2 deprecation.

* Define HTMLPurifier_EntityParserTest::$_entity_lookup

This fixes a PHP 8.2 deprecation.

* Increase minimum requirement to PHP 5.6 (#331)

* Add contenteditable attribute definition (#332)

* Add contenteditable attribute definition

* gate behind html.trusted

* use enum

* Fix creation of dynamic property (#333)

* Fix creation of dynamic property (#337)

* Add PHP 8.2 to CI (#335)

* Add PHP 8.2 to CI

see #334

* Add PHP 8.2 to composer.json

* Fix contenteditable attribute definition (#336)

* Run CSSTidy tests on CI (#338)

* Run CSSTidy tests on CI

* update dirname

* use compopser instead of git clone

* use composer

* use test-settings.sample.php

* enable ext-intl

* disable Net_IDNA2

* Release 4.15.0

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>

Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
Co-authored-by: John Flatness <john@zerocrates.org>
Co-authored-by: Tim Düsterhus <duesterhus@woltlab.com>
Co-authored-by: Tim Düsterhus <timwolla@googlemail.com>
Co-authored-by: Edward Z. Yang <ezyang@mit.edu>
github-actions bot pushed a commit that referenced this pull request Sep 18, 2022
# [4.16.0](v4.15.0...v4.16.0) (2022-09-18)

### Features

* add semantic release ([#307](#307)) ([db31243](db31243)), closes [#322](#322) [#323](#323) [#326](#326) [#327](#327) [#328](#328) [#329](#329) [#330](#330) [#331](#331) [#332](#332) [#333](#333) [#337](#337) [#335](#335) [#334](#334) [#336](#336) [#338](#338)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants