Add generic types for ActiveRecord and Container (#20325)

Co-authored-by: Alexander Makarov <sam@rmcreative.ru>
This commit is contained in:
Dmitriy Derepko
2025-02-21 19:00:43 +03:00
committed by GitHub
parent 1c191eac90
commit 06bd683d21
4 changed files with 43 additions and 3 deletions

View File

@ -11,6 +11,7 @@ use yii\db\ActiveQuery;
/**
* CustomerQuery.
* @extends ActiveQuery<CustomerWithAlias>
*/
class CustomerQuery extends ActiveQuery
{

View File

@ -21,12 +21,12 @@ class CustomerWithAlias extends ActiveRecord
public $status2;
public $sumTotal;
public static function tableName()
{
return 'customer';
}
/**
* {@inheritdoc}
* @return CustomerQuery