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.

CommentFileSizeAuthor
#2 3344496-2.patch510 bytesadil_siddiqui

Comments

jonathan_hunt created an issue. See original summary.

adil_siddiqui’s picture

Status: Active » Needs review
StatusFileSize
new510 bytes

Patch created

rosk0’s picture

Version: 7.x-1.9 » 7.x-1.x-dev
Status: Needs review » Reviewed & tested by the community

Thanks for the patch ! Works like a charm!