From f569434906e544299ce39de1254d01ee21cc75c4 Mon Sep 17 00:00:00 2001 From: Robin Brackez Date: Tue, 16 Jan 2024 10:58:47 +0100 Subject: [PATCH] Set return type for offsetGet method to avoid deprecate notice --- src/Model/Tree/TreeNodeMethodsTrait.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Model/Tree/TreeNodeMethodsTrait.php b/src/Model/Tree/TreeNodeMethodsTrait.php index e195838f..0bbc9342 100644 --- a/src/Model/Tree/TreeNodeMethodsTrait.php +++ b/src/Model/Tree/TreeNodeMethodsTrait.php @@ -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]; }