Passing null to parameter #1 ($string) of type string is deprecated

Created on 17 January 2024, about 1 year ago
Updated 14 February 2024, about 1 year ago

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.

๐Ÿ› Bug report
Status

Fixed

Version

5.0

Component

salesforce.module

Created by

๐Ÿ‡ง๐Ÿ‡ฌBulgaria yivanov

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024