Skip to content

Commit

Permalink
internal type hints added
Browse files Browse the repository at this point in the history
  • Loading branch information
dakujem committed Jan 29, 2024
1 parent def12b6 commit 94d0dd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Iterator/PostOrderTraversal.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function getIterator(): Generator
);
}

private function generate(TreeNodeContract $node, array $vector, int $nodeSeq, Counter $counter)
private function generate(TreeNodeContract $node, array $vector, int $nodeSeq, Counter $counter): Generator
{
// $seq is the child sequence number, within the given parent node.
$seq = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/Iterator/PreOrderTraversal.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function getIterator(): Generator
);
}

private function generate(TreeNodeContract $node, array $vector, int $nodeSeq, Counter $counter)
private function generate(TreeNodeContract $node, array $vector, int $nodeSeq, Counter $counter): Generator
{
// The yielded key is calculated by the key function.
// By default, it returns an incrementing sequence to prevent issues with `iterator_to_array` casts.
Expand Down

0 comments on commit 94d0dd0

Please sign in to comment.