Skip to content

Commit a282a07

Browse files
committed
Fix minor things.
1 parent af62cef commit a282a07

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Modifier/ModifierInterface.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ interface ModifierInterface
1515
* Modify the tree.
1616
*
1717
* @param NodeInterface $tree
18-
* The original tree
18+
* The original tree.
1919
*
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.
2222
*/
2323
public function modify(NodeInterface $tree): NodeInterface;
2424
}

src/Node/MerkleNode.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ private function doHash(MerkleNodeInterface $node): string
7979
{
8080
// If node is a leaf, then compute its hash from its value.
8181
if (true === $node->isLeaf()) {
82-
return $this->hasher->hash($node->getValue());
82+
return $this->hasher->hash((string) $node->getValue());
8383
}
8484

8585
$hash = '';

0 commit comments

Comments
 (0)