Suppress missing array key warnings for recurring fields.

Created on 15 August 2024, 4 months ago
Updated 29 August 2024, 4 months ago

Problem/Motivation

In Drupal 11 (could be a PHP 8.3 issue) I sometimes see a list of warnings about missing array keys in SmartDateRul.php on lines 948 and 949. The next line checks if the results are instances of an expected class, so it won't change the logic of the code if we add a nullsafe check when accessing these array elements.

Proposed resolution

Add nullsafe fallbacks to NULL on the cited lines.

📌 Task
Status

Fixed

Version

4.1

Component

Smart Date Recur

Created by

🇨🇦Canada mandclu

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