From: Roland Häder Date: Sun, 23 Oct 2022 11:58:33 +0000 (+0200) Subject: Reverted: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=be3b76170e41c7f632370b9f582da9c98d6fbd91;p=friendica.git Reverted: - $post -> $item --- 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); }