Skip to content

Commit f8e392f

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

File tree

1 file changed

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

1 file changed

+4
-1
lines changed

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

+4-1
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@ final class Battle
2323
* @GQL\Field(name="casualties", complexity="childrenComplexity * 5")
2424
*
2525
* @GQL\Arg(name="raceId", type="String!", description="A race ID")
26+
* @GQL\Arg(name="cases", type="[String!]!")
2627
*/
2728
#[GQL\Field(name: 'casualties', complexity: 'childrenComplexity * 5')]
2829
#[GQL\Arg(name: 'raceId', type: 'String!', description: 'A race ID')]
30+
#[GQL\Arg(name: 'cases', type: '[String!]!')]
2931
public function getCasualties(
3032
int $areaId,
3133
?string $raceId,
@@ -34,7 +36,8 @@ public function getCasualties(
3436
string $nameStartingWith = '',
3537
Planet $planet = null,
3638
bool $away = false,
37-
float $maxDistance = null
39+
float $maxDistance = null,
40+
array $cases = []
3841
): ?int {
3942
return 12;
4043
}

0 commit comments

Comments
 (0)