]> git.mxchange.org Git - friendica.git/commitdiff
Reverted:
authorRoland Häder <roland@mxchange.org>
Sun, 23 Oct 2022 11:58:33 +0000 (13:58 +0200)
committerRoland Häder <roland@mxchange.org>
Wed, 17 Jan 2024 00:03:01 +0000 (01:03 +0100)
- $post -> $item

src/Object/Post.php

index 2f2def004e823cfbd7f1661283a07829f66d129b..a4a4831389965c8b92ce88a3e96c86228ff2173c 100644 (file)
@@ -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);
        }