Skip to content

Commit

Permalink
Set return type for offsetGet method
Browse files Browse the repository at this point in the history
to avoid deprecate notice
  • Loading branch information
Robin Brackez committed Jan 16, 2024
1 parent aa7c160 commit f569434
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Model/Tree/TreeNodeMethodsTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -268,10 +268,7 @@ public function offsetUnset(mixed $offset): void
unset($this->getChildNodes()[$offset]);
}

/**
* @return mixed
*/
public function offsetGet(mixed $offset)
public function offsetGet(mixed $offset): mixed
{
return $this->getChildNodes()[$offset];
}
Expand Down

0 comments on commit f569434

Please sign in to comment.