Fix #20525: Add @template annotations for all actions

This commit is contained in:
Maksim Spirkov
2025-09-15 21:38:24 +04:00
committed by GitHub
parent 68600dbcba
commit 4774464159
10 changed files with 29 additions and 0 deletions

View File

@ -28,6 +28,7 @@ Yii Framework 2 Change Log
- Enh #20514: Add `@property` annotations for `yii\console\Controller` (max-s-lab) - Enh #20514: Add `@property` annotations for `yii\console\Controller` (max-s-lab)
- Bug #20515: Fix `@param` annotations in `BetweenColumnsCondition`, `InCondition` and `LikeCondition` (max-s-lab) - Bug #20515: Fix `@param` annotations in `BetweenColumnsCondition`, `InCondition` and `LikeCondition` (max-s-lab)
- Bug #20516: Fix `@template` annotations in `ActiveRecord` (max-s-lab) - Bug #20516: Fix `@template` annotations in `ActiveRecord` (max-s-lab)
- Enh #20525: Add `@template` annotations for all actions (max-s-lab)
- Bug #20524: Fix PHPStan/Psalm annotations in `Yii::createObject` (max-s-lab) - Bug #20524: Fix PHPStan/Psalm annotations in `Yii::createObject` (max-s-lab)

View File

@ -19,6 +19,9 @@ use Yii;
* *
* @author Qiang Xue <qiang.xue@gmail.com> * @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0 * @since 2.0
*
* @template T of Controller
* @extends Action<T>
*/ */
class InlineAction extends Action class InlineAction extends Action
{ {

View File

@ -11,6 +11,7 @@ use Yii;
use yii\base\Action; use yii\base\Action;
use yii\base\InvalidConfigException; use yii\base\InvalidConfigException;
use yii\helpers\Url; use yii\helpers\Url;
use yii\web\Controller;
use yii\web\Response; use yii\web\Response;
/** /**
@ -35,6 +36,9 @@ use yii\web\Response;
* *
* @author Qiang Xue <qiang.xue@gmail.com> * @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0 * @since 2.0
*
* @template T of Controller
* @extends Action<T>
*/ */
class CaptchaAction extends Action class CaptchaAction extends Action
{ {

View File

@ -19,6 +19,9 @@ use yii\web\ServerErrorHttpException;
* *
* @author Qiang Xue <qiang.xue@gmail.com> * @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0 * @since 2.0
*
* @template T of Controller
* @extends Action<T>
*/ */
class CreateAction extends Action class CreateAction extends Action
{ {

View File

@ -17,6 +17,9 @@ use yii\web\ServerErrorHttpException;
* *
* @author Qiang Xue <qiang.xue@gmail.com> * @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0 * @since 2.0
*
* @template T of Controller
* @extends Action<T>
*/ */
class DeleteAction extends Action class DeleteAction extends Action
{ {

View File

@ -21,6 +21,9 @@ use yii\helpers\ArrayHelper;
* *
* @author Qiang Xue <qiang.xue@gmail.com> * @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0 * @since 2.0
*
* @template T of Controller
* @extends Action<T>
*/ */
class IndexAction extends Action class IndexAction extends Action
{ {

View File

@ -19,6 +19,9 @@ use yii\web\ServerErrorHttpException;
* *
* @author Qiang Xue <qiang.xue@gmail.com> * @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0 * @since 2.0
*
* @template T of Controller
* @extends Action<T>
*/ */
class UpdateAction extends Action class UpdateAction extends Action
{ {

View File

@ -14,6 +14,9 @@ namespace yii\rest;
* *
* @author Qiang Xue <qiang.xue@gmail.com> * @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0 * @since 2.0
*
* @template T of Controller
* @extends Action<T>
*/ */
class ViewAction extends Action class ViewAction extends Action
{ {

View File

@ -47,6 +47,9 @@ use yii\base\UserException;
* @author Qiang Xue <qiang.xue@gmail.com> * @author Qiang Xue <qiang.xue@gmail.com>
* @author Dmitry Naumenko <d.naumenko.a@gmail.com> * @author Dmitry Naumenko <d.naumenko.a@gmail.com>
* @since 2.0 * @since 2.0
*
* @template T of Controller
* @extends Action<T>
*/ */
class ErrorAction extends Action class ErrorAction extends Action
{ {

View File

@ -27,6 +27,9 @@ use yii\base\ViewNotFoundException;
* @author Alexander Makarov <sam@rmcreative.ru> * @author Alexander Makarov <sam@rmcreative.ru>
* @author Qiang Xue <qiang.xue@gmail.com> * @author Qiang Xue <qiang.xue@gmail.com>
* @since 2.0 * @since 2.0
*
* @template T of Controller
* @extends Action<T>
*/ */
class ViewAction extends Action class ViewAction extends Action
{ {