Error updating database due to type signature mismatch with php 8.3

Created on 20 June 2025, 4 months ago

Problem/Motivation

Error on `drush updatedb`

> [notice] Update started: block_post_update_set_menu_block_depth_to_null_if_zero
> PHP Fatal error: Declaration of Drupal\layout_builder_kit\Plugin\Block\LBKBaseComponent::submitConfigurationForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state) must be compatible with Drupal\Core\Block\BlockBase::submitConfigurationForm(array &$form, Drupal\Core\Form\FormStateInterface $form_state): void in /var/www/drupal/web/modules/contrib/layout_builder_kit/src/Plugin/Block/LBKBaseComponent.php on line 311
> [warning] Drush command terminated abnormally.

Steps to reproduce

Update to drupal 11.2 with layout_builder_kit 3.0-beta installed

Proposed resolution

Adding the return type to the function seems to work

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

3.0

Component

Code

Created by

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