mirror of
https://github.com/yiisoft/yii2.git
synced 2025-12-14 18:31:22 +08:00
Fix #20666: Add missing generics in yii\base, yii\console, yii\filters and yii\web namespaces
This commit is contained in:
@@ -192,8 +192,8 @@ class Controller extends \yii\base\Controller
|
||||
* @return array the valid parameters that the action can run with.
|
||||
* @throws Exception if there are unknown options or missing arguments
|
||||
*
|
||||
* @phpstan-param Action<static> $action
|
||||
* @psalm-param Action<static> $action
|
||||
* @phpstan-param Action<$this> $action
|
||||
* @psalm-param Action<$this> $action
|
||||
*
|
||||
* @phpstan-param array<array-key, mixed> $params
|
||||
* @psalm-param array<array-key, mixed> $params
|
||||
@@ -546,8 +546,8 @@ class Controller extends \yii\base\Controller
|
||||
* @param Action $action action to get summary for
|
||||
* @return string a one-line short summary describing the specified action.
|
||||
*
|
||||
* @phpstan-param Action<static> $action
|
||||
* @psalm-param Action<static> $action
|
||||
* @phpstan-param Action<$this> $action
|
||||
* @psalm-param Action<$this> $action
|
||||
*/
|
||||
public function getActionHelpSummary($action)
|
||||
{
|
||||
@@ -563,8 +563,8 @@ class Controller extends \yii\base\Controller
|
||||
* @param Action $action action to get help for
|
||||
* @return string the detailed help information for the specified action.
|
||||
*
|
||||
* @phpstan-param Action<static> $action
|
||||
* @psalm-param Action<static> $action
|
||||
* @phpstan-param Action<$this> $action
|
||||
* @psalm-param Action<$this> $action
|
||||
*/
|
||||
public function getActionHelp($action)
|
||||
{
|
||||
@@ -588,8 +588,8 @@ class Controller extends \yii\base\Controller
|
||||
* @param Action $action the action instance
|
||||
* @return array the help information of the action arguments
|
||||
*
|
||||
* @phpstan-param Action<static> $action
|
||||
* @psalm-param Action<static> $action
|
||||
* @phpstan-param Action<$this> $action
|
||||
* @psalm-param Action<$this> $action
|
||||
*/
|
||||
public function getActionArgsHelp($action)
|
||||
{
|
||||
@@ -664,8 +664,8 @@ class Controller extends \yii\base\Controller
|
||||
* @param Action $action
|
||||
* @return array the help information of the action options
|
||||
*
|
||||
* @phpstan-param Action<static> $action
|
||||
* @psalm-param Action<static> $action
|
||||
* @phpstan-param Action<$this> $action
|
||||
* @psalm-param Action<$this> $action
|
||||
*/
|
||||
public function getActionOptionsHelp($action)
|
||||
{
|
||||
@@ -722,8 +722,8 @@ class Controller extends \yii\base\Controller
|
||||
* @param Action $action
|
||||
* @return \ReflectionFunctionAbstract
|
||||
*
|
||||
* @phpstan-param Action<static> $action
|
||||
* @psalm-param Action<static> $action
|
||||
* @phpstan-param Action<$this> $action
|
||||
* @psalm-param Action<$this> $action
|
||||
*/
|
||||
protected function getActionMethodReflection($action)
|
||||
{
|
||||
|
||||
@@ -127,8 +127,8 @@ abstract class BaseMigrateController extends Controller
|
||||
* @throws InvalidConfigException if directory specified in migrationPath doesn't exist and action isn't "create".
|
||||
* @return bool whether the action should continue to be executed.
|
||||
*
|
||||
* @phpstan-param Action<static> $action
|
||||
* @psalm-param Action<static> $action
|
||||
* @phpstan-param Action<$this> $action
|
||||
* @psalm-param Action<$this> $action
|
||||
*/
|
||||
public function beforeAction($action)
|
||||
{
|
||||
|
||||
@@ -178,8 +178,8 @@ class MigrateController extends BaseMigrateController
|
||||
* @param Action $action the action to be executed.
|
||||
* @return bool whether the action should continue to be executed.
|
||||
*
|
||||
* @phpstan-param Action<static> $action
|
||||
* @psalm-param Action<static> $action
|
||||
* @phpstan-param Action<$this> $action
|
||||
* @psalm-param Action<$this> $action
|
||||
*/
|
||||
public function beforeAction($action)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user