Nullable types must be explicit

Created on 30 April 2025, about 1 month ago

Problem/Motivation

Code triggers PHP 8.4 deprecations due to implicit Nullable types:

  • Deprecated: Drupal\block_visibility_groups\Form\ConditionFormBase::buildForm(): Implicitly marking parameter $block_visibility_group as nullable is deprecated, the explicit nullable type must be used instead in block_visibility_groups/src/Form/ConditionFormBase.php on line 94
  • Deprecated: Drupal\block_visibility_groups\Form\ConditionDeleteForm::buildForm(): Implicitly marking parameter $block_visibility_group as nullable is deprecated, the explicit nullable type must be used instead in block_visibility_groups/src/Form/ConditionDeleteForm.php on line 62
  • Deprecated: Drupal\block_visibility_groups\Controller\BlockLibraryGroupsController::listBlocks(): Implicitly marking parameter $block_visibility_group as nullable is deprecated, the explicit nullable type must be used instead in block_visibility_groups/src/Controller/BlockLibraryGroupsController.php on line 17

Proposed resolution

Fix code.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇧🇪Belgium zero2one

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