PHP 8.1 Deprecated function: str_replace(): Passing null to parameter

Created on 24 October 2023, about 1 year ago
Updated 20 November 2023, about 1 year ago

Problem/Motivation

Upgrading to PHP 8.1 ran into these.

    Deprecated function: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in template_preprocess_date_views_pager() (line 88 of /var/www/html/public/sites/all/modules/contrib/date/date_views/theme/theme.inc).
    Deprecated function: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in template_preprocess_date_views_pager() (line 102 of /var/www/html/public/sites/all/modules/contrib/date/date_views/theme/theme.inc).

Steps to reproduce

Proposed resolution

Cast $subject to a string.

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ› Bug report
Status

Needs work

Version

3.0

Component

Code

Created by

๐Ÿ‡จ๐Ÿ‡ฆCanada joelpittet Vancouver

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024