From 90c2ceb17085ed01b480f8a6ad2d8ed46a506831 Mon Sep 17 00:00:00 2001 From: Maksim Spirkov <63721828+max-s-lab@users.noreply.github.com> Date: Tue, 16 Sep 2025 22:21:17 +0400 Subject: [PATCH] Add `@template` annotation for `yii\rest\Action` (#20529) --- framework/rest/Action.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/framework/rest/Action.php b/framework/rest/Action.php index d5ab8d43e2..391735a64b 100644 --- a/framework/rest/Action.php +++ b/framework/rest/Action.php @@ -10,6 +10,7 @@ namespace yii\rest; use yii\base\InvalidConfigException; use yii\db\ActiveRecordInterface; use yii\web\NotFoundHttpException; +use yii\base\Action as BaseAction; /** * Action is the base class for action classes that implement RESTful API. @@ -18,8 +19,11 @@ use yii\web\NotFoundHttpException; * * @author Qiang Xue * @since 2.0 + * + * @template T of Controller + * @extends BaseAction */ -class Action extends \yii\base\Action +class Action extends BaseAction { /** * @var string class name of the model which will be handled by this action.