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 7
7
use BadMethodCallException ;
8
8
use Symfony \Component \Validator \Constraint ;
9
9
use TheCodingMachine \GraphQLite \Annotations \ParameterAnnotationInterface ;
10
+
10
11
use function is_array ;
11
12
use function ltrim ;
12
13
@@ -41,7 +42,7 @@ public function __construct(array $values)
41
42
}
42
43
43
44
$ 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 ' ]];
45
46
}
46
47
47
48
public function getTarget (): string
Original file line number Diff line number Diff line change 16
16
use TheCodingMachine \GraphQLite \Parameters \InputTypeParameterInterface ;
17
17
use TheCodingMachine \GraphQLite \Parameters \ParameterInterface ;
18
18
use TheCodingMachine \GraphQLite \Validator \Annotations \Assertion ;
19
+
19
20
use function array_map ;
20
21
use function array_merge ;
21
22
You can’t perform that action at this time.
0 commit comments