Problem/Motivation

Dynamic properties are deprecated in PHP 8.2. We get this error:

Deprecated function: Creation of dynamic property Drupal\taxonomy_enum\ComputedTaxonomyEnum::$value is deprecated in Drupal\Core\TypedData\TypedData->setValue() (line 102 of core/lib/Drupal/Core/TypedData/TypedData.php)

Proposed resolution

Looking at how other modules fixed this, adding $value as a class variable seems to fix it: https://www.drupal.org/project/publication_date/issues/3328575

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

beerendlauwers created an issue. See original summary.

DieterHolvoet made their first commit to this issue’s fork.

dieterholvoet’s picture

Status: Active » Needs review

beerendlauwers’s picture

Status: Needs review » Reviewed & tested by the community

Works!

  • DieterHolvoet committed cb8ba6ab on 1.x
    Issue #3454246 by DieterHolvoet, beerendlauwers: Deprecated function:...
dieterholvoet’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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