StrReplace passing null to parameter as php 8.1 deprecation

Created on 25 October 2023, 8 months ago

Problem/Motivation

The process plugin StrReplace can crash if a null value is passed to it. The PHP 8.1 deprecation Passing null to non-nullable parameters of built-in functions call of str_replace is not found by automated tools, because the method call is wrapped in a variable function.

Steps to reproduce

Proposed resolution

Use null coalescing operator to make the code safe.

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ› Bug report
Status

Closed: duplicate

Version

6.0

Component

Plugins

Created by

๐Ÿ‡ฉ๐Ÿ‡ชGermany harkonn

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

Comments & Activities

Production build 0.69.0 2024