PHP 8.1 Deprecated function: preg_split(): Passing null to parameter #2 ($subject) of type string is deprecated in Drupal\geshifilter\GeshiFilter::tagSplit()

Created on 3 February 2022, almost 3 years ago
Updated 6 January 2023, almost 2 years ago

Problem/Motivation

Running a D9 website with PHP 8.1 leads to deprecation warnings in geshifilter usage, for instance this one :
Deprecated function: preg_split(): Passing null to parameter #2 ($subject) of type string is deprecated in Drupal\geshifilter\GeshiFilter::tagSplit()

The purpose of the following patch is to remove this warning by adapting the code for PHP 8.1 compatibility.

🐛 Bug report
Status

RTBC

Version

2.0

Component

Code

Created by

🇫🇷France Dom.

Live updates comments and jobs are added and updated live.
  • PHP 8.1

    The issue particularly affects sites running on PHP version 8.1.0 or later.

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