Skip to content

Commit 4082b26

Browse files
committed
add return type declaration to count() method
1 parent 6d863bf commit 4082b26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Node.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ protected function __construct(int $l, int $r) {
1010
$this->r = $r;
1111
$this->data = new \stdClass();
1212
}
13-
public function count() {
13+
public function count(): int {
1414
return $this->r - $this->l + 1;
1515
}
1616
protected function hasChildNode(): bool {

0 commit comments

Comments
 (0)