Problem/Motivation
Using the module with PHP 8.4 produces the deprecation error -
PHP Deprecated: Drupal\tb_megamenu\Controller\TBMegaMenuAdminController::saveError(): Implicitly marking parameter $menu_name as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/docroot/modules/contrib/tb_megamenu/src/Controller/TBMegaMenuAdminController.php on line 223
PHP Deprecated: Drupal\tb_megamenu\Controller\TBMegaMenuAdminController::saveError(): Implicitly marking parameter $theme as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/docroot/modules/contrib/tb_megamenu/src/Controller/TBMegaMenuAdminController.php on line 223
PHP Deprecated: Drupal\tb_megamenu\Controller\TBMegaMenuAdminController::saveError(): Implicitly marking parameter $block_config as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/docroot/modules/contrib/tb_megamenu/src/Controller/TBMegaMenuAdminController.php on line 223
PHP Deprecated: Drupal\tb_megamenu\Controller\TBMegaMenuAdminController::saveError(): Implicitly marking parameter $menu_config as nullable is deprecated, the explicit nullable type must be used instead in /var/www/html/docroot/modules/contrib/tb_megamenu/src/Controller/TBMegaMenuAdminController.php on line 223
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | php8.4-deprecation-3568717-2.patch | 761 bytes | shani maurya |
Issue fork tb_megamenu-3568717
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
Comment #2
shani mauryaCreated patch for 8.x-1.10 version, it has been copied from the 3.0 version issue https://www.drupal.org/project/tb_megamenu/issues/3498217
Comment #3
shani mauryaComment #6
rbrownellThanks for the patch, @shani-maurya.
I’ve reviewed it and opened a merge request including this change. It’s now awaiting review.
Comment #7
liam morlandThis is the correct fix.