Skip to content

Commit 35ca943

Browse files
committed
test: Add test that reproduce issue #1165
1 parent 501193b commit 35ca943

File tree

1 file changed

+3
-1
lines changed
  • tests/Config/Parser/fixtures/annotations/Type

1 file changed

+3
-1
lines changed

tests/Config/Parser/fixtures/annotations/Type/Battle.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ final class Battle
2626
*/
2727
#[GQL\Field(name: 'casualties', complexity: 'childrenComplexity * 5')]
2828
#[GQL\Arg(name: 'raceId', type: 'String!', description: 'A race ID')]
29+
#[GQL\Arg(name: 'cases', type: '[String!]!')]
2930
public function getCasualties(
3031
int $areaId,
3132
?string $raceId,
@@ -34,7 +35,8 @@ public function getCasualties(
3435
string $nameStartingWith = '',
3536
Planet $planet = null,
3637
bool $away = false,
37-
float $maxDistance = null
38+
float $maxDistance = null,
39+
array $cases = []
3840
): ?int {
3941
return 12;
4042
}

0 commit comments

Comments
 (0)