PHP 8.1 trim(): Passing null to parameter #1 ($string) of type string is deprecated

Created on 6 July 2023, over 1 year ago

Problem/Motivation

The module assumes all content has titles have a length and can be trim()

Deprecated function: trim(): Passing null to parameter #1 ($string) of type string is deprecated in Drupal\suggest_similar_titles\Controller\SuggestionController->suggest_similar_titles_ajax_title() (line 93 of modules/contrib/suggest_similar_titles/src/Controller/SuggestionController.php).

Steps to reproduce

When using Routes List module at /admin/reports/routes-list

Proposed resolution

Simply set a default for title before trim()

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States NicholasS

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