Problem/Motivation

With PHP version 8.2 and latest version of Salesforce enabled, going to /admin/config/salesforce/authorize/list triggers deprecation error:

Deprecated: substr(): Passing null to parameter #1 ($string) of type string is deprecated in salesforce/src/Controller/SalesforceAuthListBuilder.php on line 27

Proposed resolution

Add a check for empty value, before calling substr().

Remaining tasks

Prepare a patch.

CommentFileSizeAuthor
#3 substr-deprecation-fix-3415336-3.patch845 bytesyivanov

Issue fork salesforce-3415336

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

yivanov created an issue. See original summary.

yivanov’s picture

Issue summary: View changes
yivanov’s picture

StatusFileSize
new845 bytes

chetan 11 made their first commit to this issue’s fork.

chetan 11’s picture

Status: Active » Needs review

Please check the above MR.

aaronbauman’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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