Problem/Motivation
Updating to Drupal 11.4 results in fatal error on database update
Steps to reproduce
composer update drupal/core --with-all-dependencies
when you arrive at the database updates:
[notice] Update started: help_post_update_search_help_dependencies
PHP Fatal error: Declaration of Drupal\superfish\Plugin\Block\SuperfishBlock::blockValidate($form, Drupal\Core\Form\FormStateInterface $form_state) must be compatible with Drupal\system\Plugin\Block\SystemMenuBlock::blockValidate($form, Drupal\Core\Form\FormStateInterface $form_state): void in /data/sites/web/web/modules/contrib/superfish/src/Plugin/Block/SuperfishBlock.php on line 801
[warning] Drush command terminated abnormally.
In ProcessBase.php line 155:
Output is empty.
Proposed resolution
I can try something with AI but... I prefer to report it here :).
Comments
Comment #2
ttnt commentedComment #5
karlsheaThe issue was that
SuperfishBlock::blockValidateneeded thevoidreturn type added to be compatible with the function declaration that must have changed in Drupal 11.4.Comment #6
jasongose commentedThis looks good to me :)
Comment #7
jwintx commentedThis patch works for me!
Comment #8
nick hope commented#5 works for me. Thank you.
Comment #9
basvredelingSimple patch/mr in #4 fixes 11.4.0 release compatibility, RTBC
Comment #10
lobsterr commentedThank you for you contribution, I will tag a new release today