Passing null to parameter of type string is deprecated

Created on 6 March 2023, over 1 year ago
Updated 8 May 2023, over 1 year ago

Problem/Motivation

New php version throws a warning:
Deprecated function: trim(): Passing null to parameter #1 ($string) of type string is deprecated in Drupal\prelinker\Service\Prelinker->get_path() (line 21 of modules/contrib/prelinker/src/Service/Prelinker.php).

Steps to reproduce

Update PHP version to 8.1. Every page shows the error.

Proposed resolution

Make sure the trim function receives a string value.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇳🇱Netherlands Coen van Vliet

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024