TypeError: preg_replace(): Argument #3 ($subject) must be of type array|string, int given in preg_replace() (line 67 of modules/contrib/phone_label/src/Plugin/Field/FieldFormatter/PhoneLabelFormatter.php).

Created on 27 February 2025, about 2 months ago

Problem/Motivation

Use of the field formatter on a field placed in a default layout results in LB trying to add mock data of the wrong type, and without some sort of protection we get this blocking error.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.1

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024