Commerce shipping EventSubscriber\RouteSubscriber::getSubscribedEvents() is not compatible with Drupal 10 RouteSubscriberBase::getSubscribedEvents()

Created on 28 December 2022, almost 2 years ago
Updated 20 January 2023, almost 2 years ago

Commerce shipping EventSubscriber\RouteSubscriber::getSubscribedEvents() is not compatible with Drupal 10 RouteSubscriberBase::getSubscribedEvents().

Trying to enable module on Drupal 10 will throw:
Fatal error: Declaration of Drupal\commerce_shipping\EventSubscriber\RouteSubscriber::getSubscribedEvents() must be compatible with Drupal\Core\Routing\RouteSubscriberBase::getSubscribedEvents(): array in /var/www/d10/web/modules/contrib/commerce_shipping/src/EventSubscriber/RouteSubscriber.php on line 17

Method should be compatible with Drupal 10.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇷🇴Romania SilviuChingaru

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.71.5 2024