mirror of
https://github.com/yiisoft/yii2.git
synced 2025-12-14 10:20:34 +08:00
Add generics for all controllers (#20675)
This commit is contained in:
@@ -114,6 +114,9 @@ abstract class Application extends Module
|
||||
public $sourceLanguage = 'en-US';
|
||||
/**
|
||||
* @var Controller|null the currently active controller instance
|
||||
*
|
||||
* @phpstan-var Controller<Module>|null
|
||||
* @psalm-var Controller<Module>|null
|
||||
*/
|
||||
public $controller;
|
||||
/**
|
||||
@@ -128,8 +131,8 @@ abstract class Application extends Module
|
||||
/**
|
||||
* @var Action|null the requested Action. If null, it means the request cannot be resolved into an action.
|
||||
*
|
||||
* @phpstan-var Action<covariant Controller>|null
|
||||
* @psalm-var Action<covariant Controller>|null
|
||||
* @phpstan-var Action<covariant Controller<Module>>|null
|
||||
* @psalm-var Action<covariant Controller<Module>>|null
|
||||
*/
|
||||
public $requestedAction;
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user