mb_strtolower passing null is deprecated

Created on 7 November 2023, about 1 year ago
Updated 8 November 2023, about 1 year 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.71.5 2024