Skip to content

Instantly share code, notes, and snippets.

@ahebrank
Created July 22, 2023 17:40
Show Gist options
  • Save ahebrank/d02928d3d98aca58db2c415e13f5c3ad to your computer and use it in GitHub Desktop.
Save ahebrank/d02928d3d98aca58db2c415e13f5c3ad to your computer and use it in GitHub Desktop.
diff --git a/src/Routing/RouteSubscriber.php b/src/Routing/RouteSubscriber.php
index e13d151..0cab523 100644
--- a/src/Routing/RouteSubscriber.php
+++ b/src/Routing/RouteSubscriber.php
@@ -76,7 +76,7 @@ class RouteSubscriber extends RouteSubscriberBase {
/**
* {@inheritdoc}
*/
- public static function getSubscribedEvents() {
+ public static function getSubscribedEvents(): array {
$events = parent::getSubscribedEvents();
$events[RoutingEvents::ALTER] = ['onAlterRoutes', 100];
return $events;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment