Skip to content

Commit 4774464

Browse files
authored
Fix #20525: Add @template annotations for all actions
1 parent 68600db commit 4774464

File tree

10 files changed

+29
-0
lines changed

10 files changed

+29
-0
lines changed

framework/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Yii Framework 2 Change Log
2828
- Enh #20514: Add `@property` annotations for `yii\console\Controller` (max-s-lab)
2929
- Bug #20515: Fix `@param` annotations in `BetweenColumnsCondition`, `InCondition` and `LikeCondition` (max-s-lab)
3030
- Bug #20516: Fix `@template` annotations in `ActiveRecord` (max-s-lab)
31+
- Enh #20525: Add `@template` annotations for all actions (max-s-lab)
3132
- Bug #20524: Fix PHPStan/Psalm annotations in `Yii::createObject` (max-s-lab)
3233

3334

framework/base/InlineAction.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
*
2020
* @author Qiang Xue <[email protected]>
2121
* @since 2.0
22+
*
23+
* @template T of Controller
24+
* @extends Action<T>
2225
*/
2326
class InlineAction extends Action
2427
{

framework/captcha/CaptchaAction.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use yii\base\Action;
1212
use yii\base\InvalidConfigException;
1313
use yii\helpers\Url;
14+
use yii\web\Controller;
1415
use yii\web\Response;
1516

1617
/**
@@ -35,6 +36,9 @@
3536
*
3637
* @author Qiang Xue <[email protected]>
3738
* @since 2.0
39+
*
40+
* @template T of Controller
41+
* @extends Action<T>
3842
*/
3943
class CaptchaAction extends Action
4044
{

framework/rest/CreateAction.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
*
2020
* @author Qiang Xue <[email protected]>
2121
* @since 2.0
22+
*
23+
* @template T of Controller
24+
* @extends Action<T>
2225
*/
2326
class CreateAction extends Action
2427
{

framework/rest/DeleteAction.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
*
1818
* @author Qiang Xue <[email protected]>
1919
* @since 2.0
20+
*
21+
* @template T of Controller
22+
* @extends Action<T>
2023
*/
2124
class DeleteAction extends Action
2225
{

framework/rest/IndexAction.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121
*
2222
* @author Qiang Xue <[email protected]>
2323
* @since 2.0
24+
*
25+
* @template T of Controller
26+
* @extends Action<T>
2427
*/
2528
class IndexAction extends Action
2629
{

framework/rest/UpdateAction.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
*
2020
* @author Qiang Xue <[email protected]>
2121
* @since 2.0
22+
*
23+
* @template T of Controller
24+
* @extends Action<T>
2225
*/
2326
class UpdateAction extends Action
2427
{

framework/rest/ViewAction.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@
1414
*
1515
* @author Qiang Xue <[email protected]>
1616
* @since 2.0
17+
*
18+
* @template T of Controller
19+
* @extends Action<T>
1720
*/
1821
class ViewAction extends Action
1922
{

framework/web/ErrorAction.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@
4747
* @author Qiang Xue <[email protected]>
4848
* @author Dmitry Naumenko <[email protected]>
4949
* @since 2.0
50+
*
51+
* @template T of Controller
52+
* @extends Action<T>
5053
*/
5154
class ErrorAction extends Action
5255
{

framework/web/ViewAction.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
* @author Alexander Makarov <[email protected]>
2828
* @author Qiang Xue <[email protected]>
2929
* @since 2.0
30+
*
31+
* @template T of Controller
32+
* @extends Action<T>
3033
*/
3134
class ViewAction extends Action
3235
{

0 commit comments

Comments
 (0)