Argument #2 ($label) must be of type ?Drupal\Core\StringTranslation\TranslatableMarkup

Created on 23 May 2025, 15 days ago

Problem/Motivation

After updating it to 1.0.1, Unable to edit any page.
I am on Drupal core version - 10.4.7

Error -
TypeError: Drupal\Core\Field\Attribute\FieldWidget::__construct(): Argument #2 ($label) must be of type ?Drupal\Core\StringTranslation\TranslatableMarkup, string given, called in /var/www/html/docroot/modules/contrib/webform_entity_reference_exclude/src/Plugin/Field/FieldWidget/WebformEntityReferenceExcludeSelectWidget.php on line 14 in Drupal\Core\Field\Attribute\FieldWidget->__construct() (line 46 of core/lib/Drupal/Core/Field/Attribute/FieldWidget.php).

Steps to reproduce

1. Navigate to content listing page - /admin/content
2. Try editing any of the page.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇮🇳India JatinGupta40

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