- Issue created by @lrwebks
- Merge request !21Issue #3534629: Update of block module breaks ad module → (Merged) created by lrwebks
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.)
Add the missing void
return type to the submit function.
Needs work
11.0
ad module