Problem/Motivation

PHP 8.4 deprecates implicitly nullable parameters. When a parameter has a typed declaration but has NULL as its default value, PHP 8.4 emits a deprecation warning. For instance:

Drupal\\layout_builder_additions\\LayoutBuilderBlockFormTitle::addBlock(): Implicitly marking parameter $section_storage as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/web/modules/contrib/layout_builder_additions/src/LayoutBuilderBlockFormTitle.php

Proposed resolution

Add an explicit nullable type declaration to the affected parameters.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

danherrero created an issue. See original summary.

danherrero’s picture

Status: Active » Needs review

MR created with fixes for the deprecations.

rklawson’s picture

Assigned: Unassigned » rklawson
Status: Needs review » Reviewed & tested by the community

Thank you, @danherrero. This has been reviewed and merged.

h3. Updates

  • Reviewed the code
  • Local smoke testing via DDEV on a fresh install of Drupal 11
  • Merged the MR
rklawson’s picture

Status: Reviewed & tested by the community » Fixed

Closing this out as fixed.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

rklawson’s picture

Status: Fixed » Closed (fixed)