Null error in .module

Created on 17 May 2024, about 1 month ago

Problem/Motivation

While updating Drupal core to 10.2.x in our project, I've faced this error:

Deprecated function: explode(): Passing null to parameter #2 ($string) of type string is deprecated in simple_entity_merge_entity_type_alter() (line 15 of modules/contrib/simple_entity_merge/simple_entity_merge.module).

Seems to be rather simple null error. This seems to fix it:

  $entity_exclude = array_map('trim', explode(",", $config->get('exclude') ?? ''));
🐛 Bug report
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

🇫🇮Finland robert.stankevich Helsinki, Finland

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024