Skip to content

Commit 3b4f551

Browse files
committed
fix Category::getTree
1 parent 226cdfe commit 3b4f551

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/models/Category.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ public static function getTree(array $options = [])
5656
return true;
5757
});
5858

59-
$list = self::find()->asArray()->all();
59+
/** @var Category[] $list */
60+
$list = self::find()->all();
6061

6162
$list = ArrayHelper::remove($options, 'list', $list);
6263

0 commit comments

Comments
 (0)