Problem/Motivation

When running under PHP 8.2 receive three php messages regarding the creation of dynamic properties which are deprecated in PHP 8.2

Steps to reproduce

Proposed resolution

Declare these properties

Remaining tasks

Comments

bryan_jordin created an issue. See original summary.

bryan_jordin’s picture

StatusFileSize
new395 bytes

Uploading patch file

bryan_jordin’s picture

Status: Active » Needs review
drunken monkey’s picture

Status: Needs review » Postponed (maintainer needs more info)

Please try with the latest version of the Entity API module. I think this was already resolved by adding #[\AllowDynamicProperties] to the index entity’s base class, in issue #3328049: PHP 8.2 - Fix deprecated dynamic properties.

anrikun’s picture

Title: [D7 PHP 8.2] Deprecated function: Creation of dynamic properties (rdf_mapping, status, module) » [D7 PHP 8.3] Deprecated function: Creation of dynamic property
Version: 7.x-1.29 » 7.x-1.x-dev
Assigned: bryan_jordin » Unassigned
Status: Postponed (maintainer needs more info) » Needs review
Issue tags: -PHP 8.2 +PHP 8.3
StatusFileSize
new859 bytes

This patch adds #[\AllowDynamicProperties] where required.

  • drunken monkey committed 5149cb92 on 7.x-1.x
    Issue #3399622 by anrikun, drunken monkey: Fixed deprecation warnings in...
drunken monkey’s picture

Status: Needs review » Fixed

Thanks, that looks sensible. Committed.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.