From 85394e195c1b7b79781045f1311856d42c1b7b71 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 a07c8d07e2..b4fcfcc094 100644 --- a/src/Object/Post.php +++ b/src/Object/Post.php @@ -790,7 +790,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()) { DI::logger()->error('Post object has no id', ['post' => $item]); @@ -814,8 +814,8 @@ class Post return false; } - $post->setParent($this); - $this->children[] = $post; + $item->setParent($this); + $this->children[] = $item; return end($this->children); } -- 2.39.5