preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated

Created on 5 April 2023, over 1 year ago
Updated 10 April 2023, over 1 year ago

Problem/Motivation

We have the following warning when accessing some layout builder pages :

Deprecated function: preg_match(): Passing null to parameter #2 ($subject) of type string is deprecated in lb_claro_css_alter() (line 43 of modules/contrib/lb_claro/lb_claro.module).

Steps to reproduce

Proposed resolution

preg_match() and strpos() do not accept null parameters, so we pass an empty string instead of null.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

RTBC

Version

2.0

Component

Code

Created by

🇮🇳India imalabya Bangalore

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

Comments & Activities

Production build 0.71.5 2024