- Issue created by @codechefmarc
- Merge request !63478131: Fix compatibility of overridden lazyLinks method β (Merged) created by codechefmarc
Automatically closed - issue fixed for 2 weeks with no activity.
Getting an error:
Fatal error: Declaration of Drupal\shortcut_menu\ShortcutMenuLazyBuilder::lazyLinks(): array must be compatible with Drupal\shortcut\ShortcutLazyBuilders::lazyLinks(bool $show_configure_link = true) in /app/docroot/modules/contrib/shortcut_menu/src/ShortcutMenuLazyBuilder.php on line 35
Load a page that has shortcuts on it - typically admin users who have access to use shortcuts.
I seemed to have fixed the error by looking at the original class method and matching the overridden one in `ShortcutMenuLazyBuilder`:
public function lazyLinks(bool $show_configure_link = TRUE): array {
Specifically adding the bool $show_configure_link = TRUE
to the method arguments.
Create a MR for this fix.
None.
None.
None.
Active
3.0
Code
Automatically closed - issue fixed for 2 weeks with no activity.