diff --git a/Neos.Neos/Classes/Fusion/Helper/NodeHelper.php b/Neos.Neos/Classes/Fusion/Helper/NodeHelper.php index b7fbf538ba6..aeecab5d191 100644 --- a/Neos.Neos/Classes/Fusion/Helper/NodeHelper.php +++ b/Neos.Neos/Classes/Fusion/Helper/NodeHelper.php @@ -31,11 +31,8 @@ */ class NodeHelper implements ProtectedContextAwareInterface { - /** - * @Flow\Inject - * @var ContentRepositoryRegistry - */ - protected $contentRepositoryRegistry; + #[Flow\Inject] + protected ContentRepositoryRegistry $contentRepositoryRegistry; /** * Check if the given node is already a collection, find collection by nodePath otherwise, throw exception @@ -80,7 +77,7 @@ public function nearestContentCollection(Node $node, string $nodePath): Node throw new Exception(sprintf( 'No content collection of type %s could be found in the current node (%s) or at the path "%s".' . ' You might want to adjust your node type configuration and create the missing child node' - . ' through the "flow node:repair --node-type %s" command.', + . ' through the "flow structureadjustments:fix --node-type %s" command.', $contentCollectionType, $nodePathOfNode->value, $nodePath->serializeToString(),