diff --git a/HttpServer/Route/Node.php b/HttpServer/Route/Node.php index b9f1d258..2ad237b6 100644 --- a/HttpServer/Route/Node.php +++ b/HttpServer/Route/Node.php @@ -261,14 +261,8 @@ class Node extends HttpService */ public function addChild(Node $node, string $field): Node { - $field = (string)$field; - /** @var Node $oLod */ - $oLod = $this->childes[$field] ?? null; - if (!empty($oLod)) { - $node = $oLod; - } - $this->childes[$field] = $node; - return $this->childes[$field]; + $this->childes[] = $node; + return $node; }