mb_strtolower passing null is deprecated

Created on 7 November 2023, 8 months ago
Updated 8 November 2023, 8 months ago

Problem/Motivation

This is an edge case, probably only occurring during automated tests.
When no plugin config is set, the RequestPathInclexcl:evaluate() method produces the following warning:
Deprecated: mb_strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in web/modules/contrib/condition_path/src/Plugin/Condition/RequestPathInclexcl.php on line 90

Proposed resolution

Make sure NULL is not passed to mb_strtolower().

Remaining tasks

Make sure NULL is not passed to mb_strtolower().

User interface changes

None.

API changes

None.

Data model changes

None.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium Fernly

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

Comments & Activities

Production build 0.69.0 2024