From be3b76170e41c7f632370b9f582da9c98d6fbd91 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 23 Oct 2022 13:58:33 +0200 Subject: [PATCH] Reverted: - $post -> $item --- src/Object/Post.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Object/Post.php b/src/Object/Post.php index 2f2def004e..a4a4831389 100644 --- a/src/Object/Post.php +++ b/src/Object/Post.php @@ -783,7 +783,7 @@ class Post * @return Post|bool Last Post object or bool on any error * @throws \Exception */ - public function addChild(Post $post) + public function addChild(Post $item) { if (!$item->getId()) { Logger::error('Post object has no id', ['post' => $item]); @@ -807,8 +807,8 @@ class Post return false; } - $post->setParent($this); - $this->children[] = $post; + $item->setParent($this); + $this->children[] = $item; return end($this->children); } -- 2.39.5