Fix #20666: Add missing generics in yii\base, yii\console, yii\filters and yii\web namespaces

This commit is contained in:
Maksim Spirkov
2025-10-31 22:43:14 +03:00
committed by GitHub
parent 1821a61ddc
commit c569e9136b
32 changed files with 189 additions and 31 deletions

View File

@@ -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)
{