diff --git a/core/lib/Drupal/Core/Routing/UrlGenerator.php b/core/lib/Drupal/Core/Routing/UrlGenerator.php index b9294b2158..d22cb8285a 100644 --- a/core/lib/Drupal/Core/Routing/UrlGenerator.php +++ b/core/lib/Drupal/Core/Routing/UrlGenerator.php @@ -431,7 +431,7 @@ protected function getRoute($name) { /** * Gets either the route name or a string based on the route object. * - * @param mixed $name + * @param string|\Symfony\Component\Routing\Route $name * A string route name, or a serializable object. * * @return string @@ -439,7 +439,7 @@ protected function getRoute($name) { * * @internal */ - private function getRouteStringIdentifier($name, array $parameters = []) { + private function getRouteStringIdentifier($name) { if (is_scalar($name)) { return $name; } @@ -489,7 +489,7 @@ public function supports($name) { */ public function getRouteDebugMessage($name, array $parameters = []) { @trigger_error(__METHOD__ . '() is deprecated in drupal:10.1.0 and is removed from drupal:11.0.0. Use the route name instead. See https://www.drupal.org/node/3172303', E_USER_DEPRECATED); - return $this->getRouteStringIdentifier($name, $parameters); + return $this->getRouteStringIdentifier($name); } }