From ff47ff2d01527a8381b367c3961dd925d08147f2 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Mon, 29 Nov 2021 20:08:13 +0100 Subject: [PATCH] fix bugs --- Models/WikiCategoryMapper.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Models/WikiCategoryMapper.php b/Models/WikiCategoryMapper.php index 08ebea0..75d1d69 100755 --- a/Models/WikiCategoryMapper.php +++ b/Models/WikiCategoryMapper.php @@ -101,7 +101,7 @@ final class WikiCategoryMapper extends DataMapperAbstract /** * Get by parent. * - * @param int $value Parent value id + * @param null|int $value Parent value id * @param int $app App * @param int $depth Relation depth * @@ -109,7 +109,7 @@ final class WikiCategoryMapper extends DataMapperAbstract * * @since 1.0.0 */ - public static function getByParentAndApp(int $value, int $app = 1, int $depth = 3) : array + public static function getByParentAndApp(int $value = null, int $app = 1, int $depth = 3) : array { $query = self::getQuery(); $query->where(static::$table . '_d' . $depth . '.' . static::$parent, '=', $value)