Passing null to parameter #2 preg_split is deprecated in reroute_email_split_string

Created on 9 June 2022, almost 3 years ago
Updated 28 September 2023, over 1 year ago

Problem/Motivation

Deprecated function: preg_split(): Passing null to parameter #2 ($subject) of type string is deprecated in reroute_email_split_string() (line 339 of /var/www/html/docroot/modules/contrib/reroute_email/reroute_email.module)

Steps to reproduce

Use PHP 8.1

Proposed resolution

Check if string is empty and return an empty array, avoiding calling preg_split on null.

🐛 Bug report
Status

Closed: duplicate

Version

2.1

Component

Code

Created by

🇬🇧United Kingdom chrisrhymes

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024