Drupal 10 updates RouteSubscriberBase::getSubscribedEvents by declaring an array return type. Our route subscriber does not.
The result is the following error:
PHP Fatal error: Declaration of Drupal\tvi\EventSubscriber\RouteSubscriber::getSubscribedEvents() must be compatible with Drupal\Core\Routing\RouteSubscriberBase::getSubscribedEvents(): array in /app/web/modules/composer/tvi/src/EventSubscriber/RouteSubscriber.php on line 34
Install the module on Drupal 10 and clear the caches. You should receive the above mentioned error.
Add the array return type declaration to Drupal\tvi\EventSubscriber\RouteSubscriber::getSubscribedEvents.
Closed: outdated
2.0
Code