Closed lesha724 closed 2 years ago
I have next error
------ --------------------------------------------------------------------------------------------- Line TestModel.php ------ --------------------------------------------------------------------------------------------- 14 Method common\models\TestModel::getAll() should return array<static(common\models\TestModel)> but returns array<int, common\models\TestModel>. ------ ----------------------------------------------------------------------------------------------
This is my example code
class TestModel extends ActiveRecord { /** * @return static[] */ public function getAll() : array { return static::find()->all(); } }
Version phpstan is latest (1.5.4)
I have next error
This is my example code
Version phpstan is latest (1.5.4)