File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 77use BadMethodCallException ;
88use Symfony \Component \Validator \Constraint ;
99use TheCodingMachine \GraphQLite \Annotations \ParameterAnnotationInterface ;
10+
1011use function is_array ;
1112use function ltrim ;
1213
@@ -41,7 +42,7 @@ public function __construct(array $values)
4142 }
4243
4344 $ this ->for = ltrim ($ values ['for ' ], '$ ' );
44- $ this ->constraint = is_array ($ values ['constraint ' ]) ? $ values ['constraint ' ] : [ $ values ['constraint ' ] ];
45+ $ this ->constraint = is_array ($ values ['constraint ' ]) ? $ values ['constraint ' ] : [$ values ['constraint ' ]];
4546 }
4647
4748 public function getTarget (): string
Original file line number Diff line number Diff line change 1616use TheCodingMachine \GraphQLite \Parameters \InputTypeParameterInterface ;
1717use TheCodingMachine \GraphQLite \Parameters \ParameterInterface ;
1818use TheCodingMachine \GraphQLite \Validator \Annotations \Assertion ;
19+
1920use function array_map ;
2021use function array_merge ;
2122
You can’t perform that action at this time.
0 commit comments