Issues (10)

src/models/AppQuery.php (1 issue)

1
<?php
2
3
namespace graychen\yii2\basic\auth\models;
4
5
/**
6
 * This is the ActiveQuery class for [[App]].
7
 *
8
 * @see App
9
 */
10
class AppQuery extends \yii\db\ActiveQuery
11
{
12
    /**
13
     * @inheritdoc
14
     * @return App[]|array
15
     */
16
    public function all($db = null)
17
    {
18
        return parent::all($db);
19
    }
20
21
    /**
22
     * @inheritdoc
23
     * @return App|array|null
24
     */
25
    public function one($db = null)
26
    {
27
        return parent::one($db);
0 ignored issues
show
Bug Best Practice introduced by
The expression return parent::one($db) also could return the type yii\db\ActiveRecord which is incompatible with the return type mandated by yii\db\QueryInterface::one() of boolean|array.
Loading history...
28
    }
29
}
30