File tree 1 file changed +4
-1
lines changed
tests/Config/Parser/fixtures/annotations/Type
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -23,9 +23,11 @@ final class Battle
23
23
* @GQL\Field(name="casualties", complexity="childrenComplexity * 5")
24
24
*
25
25
* @GQL\Arg(name="raceId", type="String!", description="A race ID")
26
+ * @GQL\Arg(name="cases", type="[String!]!")
26
27
*/
27
28
#[GQL \Field(name: 'casualties ' , complexity: 'childrenComplexity * 5 ' )]
28
29
#[GQL \Arg(name: 'raceId ' , type: 'String! ' , description: 'A race ID ' )]
30
+ #[GQL \Arg(name: 'cases ' , type: '[String!]! ' )]
29
31
public function getCasualties (
30
32
int $ areaId ,
31
33
?string $ raceId ,
@@ -34,7 +36,8 @@ public function getCasualties(
34
36
string $ nameStartingWith = '' ,
35
37
Planet $ planet = null ,
36
38
bool $ away = false ,
37
- float $ maxDistance = null
39
+ float $ maxDistance = null ,
40
+ array $ cases = []
38
41
): ?int {
39
42
return 12 ;
40
43
}
You can’t perform that action at this time.
0 commit comments