Passing null to stripos() and rtrim() is deprecated

Created on 13 January 2022, over 3 years ago
Updated 19 January 2023, over 2 years ago

Problem/Motivation

On PHP 8.1, the module throws a deprecation warning as it is no longer allowed to pass null to an internal PHP function that has the parameter typed as string.

Proposed resolution

Typecast return (null) values into string before passing them along as parameter.

🐛 Bug report
Status

Fixed

Version

6.0

Component

Code

Created by

🇧🇪Belgium Bart Vanhoutte

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.

No activities found.

Production build 0.71.5 2024