Entity label might return NULL which throws an exception in PHP 8.1 and later

Created on 12 April 2023, over 1 year ago
Updated 26 April 2023, over 1 year ago

Problem/Motivation

When calling $this->createEvent in danse_content, we use $entity->label() as the second argument. Unfortunately, that may give us a NULL which is not acceptable.

Proposed resolution

Let's default to unknown in such cases.

🐛 Bug report
Status

Fixed

Version

2.2

Component

Code

Created by

🇩🇪Germany jurgenhaas Gottmadingen

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

Comments & Activities

Production build 0.71.5 2024