null given in array_filter()

Created on 8 January 2025, 1 day ago

Problem/Motivation

I am running cim to install this module and to add path prefix to language.

Steps to reproduce

In a database that does not have yet the path prefix enabled, try to install this module.

Proposed resolution

Created patch.

Error: TypeError: array_filter(): Argument #1 ($array) must be of type array, null given in array_filter() (line 113 of /var/www/html/web/modules/contrib/single_language_url_prefix/src/SingleLanguageNegotiationUrl.php.

🐛 Bug report
Status

Active

Version

2.1

Component

Code

Created by

🇷🇴Romania sorina.hriban

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

Comments & Activities

Production build 0.71.5 2024