Deprecated function: Creation of dynamic property in DomainEntitySourcePathProcessor

Created on 6 March 2025, about 1 month ago

Problem/Motivation

See the following warning displayed on all pages:

Deprecated function: Creation of dynamic property Drupal\domain_entity\HttpKernel\DomainEntitySourcePathProcessor::$sourceMapper is deprecated in Drupal\domain_entity\HttpKernel\DomainEntitySourcePathProcessor->__construct() (line 119 of modules/contrib/domain_entity/src/HttpKernel/DomainEntitySourcePathProcessor.php).

Steps to reproduce

System info:
PHP 8.3
Drupal 10.3.10

Install, enable, and configure 1.0@RC release of the module.

Proposed resolution

Modify DomainEntitySourcePathProcessor class to explicitly define $sourceMapper as a protected variable.

Fix processOutbound() method's deprecated (as of PHP 8.4) implicitly nullable parameters.

Remaining tasks

Create and review PR.

πŸ› Bug report
Status

Needs review

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States fholub13

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024