From d5903d27bd80241c518f689a0128b5adf1ab1324 Mon Sep 17 00:00:00 2001 From: Sam Arjmandi Date: Thu, 2 Oct 2025 19:33:48 -0300 Subject: [PATCH] Fix return of SwatTreeNode to be align with return type --- Swat/SwatTreeNode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Swat/SwatTreeNode.php b/Swat/SwatTreeNode.php index 197e96c7..1f374ea6 100644 --- a/Swat/SwatTreeNode.php +++ b/Swat/SwatTreeNode.php @@ -111,7 +111,7 @@ public function getParent() */ public function getChildren(): ?RecursiveIterator { - return $this->children; + return new RecursiveArrayIterator($this->children); } /**