File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ interface ModifierInterface
15
15
* Modify the tree.
16
16
*
17
17
* @param NodeInterface $tree
18
- * The original tree
18
+ * The original tree.
19
19
*
20
- * @return NodeInterface
21
- * A new tree
20
+ * @return \drupol\phptree\Node\AttributeNodeInterface|\drupol\phptree\Node\MerkleNodeInterface|\drupol\phptree\Node\ValueNodeInterface| NodeInterface
21
+ * A new tree.
22
22
*/
23
23
public function modify (NodeInterface $ tree ): NodeInterface ;
24
24
}
Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ private function doHash(MerkleNodeInterface $node): string
79
79
{
80
80
// If node is a leaf, then compute its hash from its value.
81
81
if (true === $ node ->isLeaf ()) {
82
- return $ this ->hasher ->hash ($ node ->getValue ());
82
+ return $ this ->hasher ->hash (( string ) $ node ->getValue ());
83
83
}
84
84
85
85
$ hash = '' ;
You can’t perform that action at this time.
0 commit comments