@@ -61,7 +61,7 @@ public function isAncestorNodeOf(string $nodePathOrIdentifier): bool
61
61
return $ nodePathOrResult ;
62
62
}
63
63
64
- return str_starts_with ($ nodePathOrResult , ( string ) $ this ->getSubgraph ()->retrieveNodePath ($ this ->node ->nodeAggregateId ));
64
+ return str_starts_with ($ nodePathOrResult , $ this ->getSubgraph ()->retrieveNodePath ($ this ->node ->nodeAggregateId )-> value );
65
65
}
66
66
67
67
/**
@@ -80,7 +80,7 @@ public function isDescendantNodeOf(string $nodePathOrIdentifier): bool
80
80
return $ nodePathOrResult ;
81
81
}
82
82
83
- return str_starts_with (( string ) $ this ->getSubgraph ()->retrieveNodePath ($ this ->node ->nodeAggregateId ), $ nodePathOrResult );
83
+ return str_starts_with ($ this ->getSubgraph ()->retrieveNodePath ($ this ->node ->nodeAggregateId )-> value , $ nodePathOrResult );
84
84
}
85
85
86
86
/**
@@ -138,7 +138,7 @@ public function isInWorkspace(array $workspaceNames): bool
138
138
$ workspace = $ contentRepository ->getWorkspaceFinder ()->findOneByCurrentContentStreamId (
139
139
$ this ->node ->subgraphIdentity ->contentStreamId
140
140
);
141
- return !is_null ($ workspace ) && in_array (( string ) $ workspace ->workspaceName , $ workspaceNames );
141
+ return !is_null ($ workspace ) && in_array ($ workspace ->workspaceName -> value , $ workspaceNames );
142
142
}
143
143
144
144
/**
@@ -186,7 +186,7 @@ protected function resolveNodePathOrResult(string $nodePathOrIdentifier): bool|s
186
186
if (is_null ($ otherNode )) {
187
187
return false ;
188
188
}
189
- return $ this ->getSubgraph ()->retrieveNodePath ($ otherNode ->nodeAggregateId ) . '/ ' ;
189
+ return $ this ->getSubgraph ()->retrieveNodePath ($ otherNode ->nodeAggregateId )-> value . '/ ' ;
190
190
} catch (\InvalidArgumentException $ e ) {
191
191
return rtrim ($ nodePathOrIdentifier , '/ ' ) . '/ ' ;
192
192
}
0 commit comments