From a47192daeefa73e76bcbc0fc0cbefbe6e1aafe08 Mon Sep 17 00:00:00 2001 From: Prokyonn Date: Tue, 16 Jul 2024 10:57:14 +0200 Subject: [PATCH] Fix phpstan --- Document/Subscriber/RoutableSubscriber.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Document/Subscriber/RoutableSubscriber.php b/Document/Subscriber/RoutableSubscriber.php index 3e5b6a2a..6a976506 100644 --- a/Document/Subscriber/RoutableSubscriber.php +++ b/Document/Subscriber/RoutableSubscriber.php @@ -310,7 +310,7 @@ private function updateRoute(RoutablePageBehavior $document): void $node = $this->documentInspector->getNode($document); $node->setProperty($propertyName, $route->getPath()); - $node->setProperty($this->propertyEncoder->localizedContentName(self::ROUTE_FIELD_NAME, $locale), $propertyName); + $node->setProperty($this->propertyEncoder->localizedContentName(self::ROUTE_FIELD_NAME, (string) $locale), $propertyName); } private function updateChildRoutes(ChildrenBehavior $document): void