PHP 8.4 deprecation notices

Created on 17 July 2025, 15 days ago

Problem/Motivation

When using the module with PHP 8.4 installed several deprecation notices are displayed:

NOTICE: PHP message: PHP Deprecated:  Drupal\select_or_other\Plugin\Field\FieldWidget\ReferenceWidget::__construct(): Implicitly marking parameter $entity_type as nullable is deprecated, the explicit nullable type must be used instead in src/Plugin/Field/FieldWidget/ReferenceWidget.php on line 72
NOTICE: PHP message: PHP Deprecated:  Drupal\select_or_other\Plugin\Field\FieldWidget\ReferenceWidget::__construct(): Implicitly marking parameter $bundle_info_service as nullable is deprecated, the explicit nullable type must be used instead in src/Plugin/Field/FieldWidget/ReferenceWidget.php on line 72
NOTICE: PHP message: PHP Deprecated:  Drupal\select_or_other\Plugin\Field\FieldWidget\ReferenceWidget::__construct(): Implicitly marking parameter $current_user as nullable is deprecated, the explicit nullable type must be used instead in src/Plugin/Field/FieldWidget/ReferenceWidget.php on line 72
NOTICE: PHP message: PHP Deprecated:  Drupal\select_or_other\Plugin\Field\FieldWidget\ReferenceWidget::getOptions(): Implicitly marking parameter $entity as nullable is deprecated, the explicit nullable type must be used instead in src/Plugin/Field/FieldWidget/ReferenceWidget.php on line 130
NOTICE: PHP message: PHP Deprecated:  Drupal\select_or_other\Plugin\Field\FieldWidget\WidgetBase::getOptions(): Implicitly marking parameter $entity as nullable is deprecated, the explicit nullable type must be used instead in select_or_other/src/Plugin/Field/FieldWidget/WidgetBase.php on line 207
NOTICE: PHP message: PHP Deprecated:  Drupal\select_or_other\Plugin\Field\FieldWidget\ListWidget::getOptions(): Implicitly marking parameter $entity as nullable is deprecated, the explicit nullable type must be used instead in select_or_other/src/Plugin/Field/FieldWidget/ListWidget.php on line 107
🐛 Bug report
Status

Active

Version

4.2

Component

Code

Created by

🇬🇧United Kingdom intrafusion Edinburgh, UK

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