From fe9ef577ceb680389df925edaf5211dd1da9eca5 Mon Sep 17 00:00:00 2001 From: Mart-Jan Verhage Date: Mon, 4 Dec 2023 16:41:52 +0100 Subject: [PATCH 1/2] PhpStan for AliasedInterface.php Resolver::getAliases() return type has no value type specified in iterable type array. See: https://phpstan.org/blog/solving-phpstan-no-value-type-specified-in-iterable-type --- src/Definition/Resolver/AliasedInterface.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Definition/Resolver/AliasedInterface.php b/src/Definition/Resolver/AliasedInterface.php index feed83ba0..f770a8cb2 100644 --- a/src/Definition/Resolver/AliasedInterface.php +++ b/src/Definition/Resolver/AliasedInterface.php @@ -11,6 +11,8 @@ interface AliasedInterface * * For instance: * array('myMethod' => 'myAlias') + * + * @return array */ public static function getAliases(): array; } From 53356889347c57165e02670ac47d86eab9e8c9ab Mon Sep 17 00:00:00 2001 From: Mart-Jan Verhage Date: Fri, 10 May 2024 10:07:33 +0200 Subject: [PATCH 2/2] Update AliasedInterface.php fix array key type --- src/Definition/Resolver/AliasedInterface.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Definition/Resolver/AliasedInterface.php b/src/Definition/Resolver/AliasedInterface.php index f770a8cb2..dd383ab8b 100644 --- a/src/Definition/Resolver/AliasedInterface.php +++ b/src/Definition/Resolver/AliasedInterface.php @@ -12,7 +12,7 @@ interface AliasedInterface * For instance: * array('myMethod' => 'myAlias') * - * @return array + * @return list */ public static function getAliases(): array; }