Skip to content

Commit

Permalink
Fix phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
Prokyonn committed Jul 16, 2024
1 parent 322364c commit a47192d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Document/Subscriber/RoutableSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a47192d

Please sign in to comment.