On PHP 8.1.6, passing null to parameter #1 ($string) of type string is deprecated

Created on 26 February 2023, over 1 year ago
Updated 10 January 2024, 6 months ago

Problem/Motivation

Deprecated function: trim(): Passing null to parameter #1 ($string) of type string is deprecated in chr_curl_http_request() (line 250 of /sites/all/modules/contrib/chr/chr.module).

Steps to reproduce

Use chr on PHP 8.1.6

Proposed resolution

Refactor chr_curl_http_request() to use trim() without the argument to trim() being null.

Remaining tasks

Write patch.

🐛 Bug report
Status

RTBC

Version

1.0

Component

Code

Created by

🇳🇿New Zealand jonathan_hunt

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

Comments & Activities

Production build 0.69.0 2024