diff --git a/src/models/Category.php b/src/models/Category.php index 9128d61..c7509ce 100644 --- a/src/models/Category.php +++ b/src/models/Category.php @@ -56,7 +56,8 @@ public static function getTree(array $options = []) return true; }); - $list = self::find()->asArray()->all(); + /** @var Category[] $list */ + $list = self::find()->all(); $list = ArrayHelper::remove($options, 'list', $list);