Skip to content

Commit e7277f0

Browse files
committed
Update the ValueGraph object, it can be easily used when doing example trees.
1 parent 60f8543 commit e7277f0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/src/Converter/ValueGraph.php

+4
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ protected function createVertex(NodeInterface $node): Vertex
2626
*/
2727
protected function createVertexId(NodeInterface $node)
2828
{
29+
if (\method_exists($node, 'getValue')) {
30+
return $node->getValue();
31+
}
32+
2933
return \sha1((string) parent::createVertexId($node));
3034
}
3135
}

0 commit comments

Comments
 (0)