Change Patch::originalEntity variable type along to Drupal 11.2

Created on 26 May 2025, 11 days ago

Problem/Motivation

Since version 11.2 Drupal EntityBase class has variable $originalEntity defined as ?EntityInterface. We define this variable as not nullable EntityInterface that causes fatal error.

Steps to reproduce

To reproduce the error upgrade the core to version 11.2 - site will lay down in fatal error.

Proposed resolution

As we can't just remove this variable in favor of parent one to keep back compatibility with previous core versions, we can add nullable type «?EntityInterface» .

Remaining tasks

None

User interface changes

None

API changes

None

Data model changes

None

🐛 Bug report
Status

Active

Version

2.1

Component

Code

Created by

🇷🇺Russia Alezu

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