Update of block module breaks ad module blocks

Created on 8 July 2025, 13 days ago

Problem/Motivation

Fatal error: Declaration of Drupal\ad\Plugin\Block\AdSlot::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/html/web/modules/custom/ad/src/Plugin/Block/AdSlot.php on line 116
Since the return type of the function mentioned here was not explicitly added. (Probably my mistake, I must admit.)

Steps to reproduce

Add the missing void return type to the submit function.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs work

Version

11.0

Component

ad module

Created by

🇩🇪Germany lrwebks Porta Westfalica

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