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 some more PHP 8.2 deprecations #330

Merged
merged 5 commits into from
Sep 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions library/HTMLPurifier/AttrTransform/SafeParam.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ class HTMLPurifier_AttrTransform_SafeParam extends HTMLPurifier_AttrTransform
*/
private $uri;

/**
* @type HTMLPurifier_AttrDef_Enum
*/
public $wmode;

public function __construct()
{
$this->uri = new HTMLPurifier_AttrDef_URI(true); // embedded
Expand Down
6 changes: 6 additions & 0 deletions tests/HTMLPurifier/DefinitionCache/DecoratorHarness.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@
class HTMLPurifier_DefinitionCache_DecoratorHarness extends HTMLPurifier_DefinitionCacheHarness
{

public $cache;

public $mock;

public $def;

public function setup()
{
$this->mock = new HTMLPurifier_DefinitionCacheMock();
Expand Down
2 changes: 2 additions & 0 deletions tests/HTMLPurifier/EntityParserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ class HTMLPurifier_EntityParserTest extends HTMLPurifier_Harness

protected $EntityParser;

protected $_entity_lookup;

public function setUp()
{
$this->EntityParser = new HTMLPurifier_EntityParser();
Expand Down