This commit is contained in:
Dennis Eichhorn 2021-11-29 20:08:13 +01:00
parent a1e9ca2c92
commit ff47ff2d01

View File

@ -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)