Remove array shapes from @return annotations (#20580)

This commit is contained in:
Maksim Spirkov
2025-10-07 09:10:36 +04:00
committed by GitHub
parent 049d52d699
commit 716024c91e

View File

@ -203,7 +203,9 @@ class Controller extends \yii\base\Controller
* if the function parameter has a single named type.
* @param mixed $param The parameter value.
* @param \ReflectionNamedType $type
* @return array{0: mixed, 1: bool} The resulting parameter value and a boolean indicating whether the value is valid.
* @return array The resulting parameter value and a boolean indicating whether the value is valid.
*
* @phpstan-return array{mixed, bool}
*/
private function filterSingleTypeActionParam($param, $type)
{
@ -248,7 +250,9 @@ class Controller extends \yii\base\Controller
* if the function parameter has a union type.
* @param mixed $param The parameter value.
* @param \ReflectionUnionType $type
* @return array{0: mixed, 1: bool} The resulting parameter value and a boolean indicating whether the value is valid.
* @return array The resulting parameter value and a boolean indicating whether the value is valid.
*
* @phpstan-return array{mixed, bool}
*/
private function filterUnionTypeActionParam($param, $type)
{