From f8e392fedefda63f89170591a50196d75351780f Mon Sep 17 00:00:00 2001 From: Mathieu Rochette Date: Thu, 14 Mar 2024 10:13:23 +0100 Subject: [PATCH] test: Add test that reproduce issue #1165 --- tests/Config/Parser/fixtures/annotations/Type/Battle.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/Config/Parser/fixtures/annotations/Type/Battle.php b/tests/Config/Parser/fixtures/annotations/Type/Battle.php index 30be8b833..ee43a764f 100644 --- a/tests/Config/Parser/fixtures/annotations/Type/Battle.php +++ b/tests/Config/Parser/fixtures/annotations/Type/Battle.php @@ -23,9 +23,11 @@ final class Battle * @GQL\Field(name="casualties", complexity="childrenComplexity * 5") * * @GQL\Arg(name="raceId", type="String!", description="A race ID") + * @GQL\Arg(name="cases", type="[String!]!") */ #[GQL\Field(name: 'casualties', complexity: 'childrenComplexity * 5')] #[GQL\Arg(name: 'raceId', type: 'String!', description: 'A race ID')] + #[GQL\Arg(name: 'cases', type: '[String!]!')] public function getCasualties( int $areaId, ?string $raceId, @@ -34,7 +36,8 @@ public function getCasualties( string $nameStartingWith = '', Planet $planet = null, bool $away = false, - float $maxDistance = null + float $maxDistance = null, + array $cases = [] ): ?int { return 12; }