Testing D7 Rules with PHP 8.1 shows some new errors due to deprecated methods in PHP. See https://www.drupal.org/pift-ci-job/2243148

These are similar to:
str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated

This issue is a blocker for a new D7 release of Rules.

CommentFileSizeAuthor
#2 3250514-2-str-replace.patch654 bytestr

Comments

TR created an issue. See original summary.

tr’s picture

Status: Active » Needs review
StatusFileSize
new654 bytes

  • TR committed fcc064b on 7.x-2.x
    Issue #3250514 by TR: [D7] PHP 8.1 compatibility - str_replace()
    
tr’s picture

Status: Needs review » Fixed

Test results show this patch doesn't affect anything under PHP 5.3, as expected, and eliminates the errors mention in the issue summary under PHP 8.1.

Committed #2.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.