Support for PHP 8.1 <

Created on 23 January 2023, almost 2 years ago
Updated 21 November 2023, 12 months ago

Problem/Motivation

There is a depricated usage of mb_strtolower(), we need to ensure that value passed to mb_strtolower() is not NULL

Notice visible in logs: "Deprecated function: mb_strtolower(): Passing null to parameter #1 (closed) ($string) of type string is deprecated in Drupal\enforce_user_fields\EventSubscriber\EnforceUserFieldsSubscriber->checkForUserFields() (line 109 of /var/www/modules/contrib/enforce_user_fields/src/EventSubscriber/EnforceUserFieldsSubscriber.php)"

Steps to reproduce

Run Drupal Core 9.4 < and PHP 8.1 <, enable module check message in logs.

Proposed resolution

Fix the conditions to check that value is not NULL

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡΅πŸ‡±Poland henk

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

Comments & Activities

Production build 0.71.5 2024