mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 21:41:19 +08:00
Remove array shapes from @return annotations (#20580)
This commit is contained in:
@ -203,7 +203,9 @@ class Controller extends \yii\base\Controller
|
|||||||
* if the function parameter has a single named type.
|
* if the function parameter has a single named type.
|
||||||
* @param mixed $param The parameter value.
|
* @param mixed $param The parameter value.
|
||||||
* @param \ReflectionNamedType $type
|
* @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)
|
private function filterSingleTypeActionParam($param, $type)
|
||||||
{
|
{
|
||||||
@ -248,7 +250,9 @@ class Controller extends \yii\base\Controller
|
|||||||
* if the function parameter has a union type.
|
* if the function parameter has a union type.
|
||||||
* @param mixed $param The parameter value.
|
* @param mixed $param The parameter value.
|
||||||
* @param \ReflectionUnionType $type
|
* @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)
|
private function filterUnionTypeActionParam($param, $type)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user