Skip to content

Commit

Permalink
test: Add test that reproduce issue #1165
Browse files Browse the repository at this point in the history
  • Loading branch information
mathroc committed Mar 14, 2024
1 parent 501193b commit f8e392f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/Config/Parser/fixtures/annotations/Type/Battle.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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;
}
Expand Down

0 comments on commit f8e392f

Please sign in to comment.