mirror of
https://github.com/yiisoft/yii2.git
synced 2025-12-13 09:50:56 +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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user