6
6
7
7
use GraphQL \Type \Definition \InputType ;
8
8
use GraphQL \Type \Definition \ResolveInfo ;
9
+ use GraphQL \Type \Definition \Type ;
9
10
use Symfony \Component \Validator \Constraint ;
10
11
use Symfony \Component \Validator \ConstraintValidatorFactoryInterface ;
11
12
use Symfony \Component \Validator \Context \ExecutionContext ;
@@ -40,13 +41,8 @@ public function __construct(InputTypeParameterInterface $parameter, string $para
40
41
$ this ->translator = $ translator ;
41
42
}
42
43
43
- /**
44
- * @param array<string, mixed> $args
45
- * @param mixed $context
46
- *
47
- * @return mixed
48
- */
49
- public function resolve (object |null $ source , array $ args , $ context , ResolveInfo $ info )
44
+ /** @param array<string, mixed> $args */
45
+ public function resolve (object |null $ source , array $ args , mixed $ context , ResolveInfo $ info ): mixed
50
46
{
51
47
$ value = $ this ->parameter ->resolve ($ source , $ args , $ context , $ info );
52
48
@@ -67,7 +63,7 @@ public function resolve(object|null $source, array $args, $context, ResolveInfo
67
63
return $ value ;
68
64
}
69
65
70
- public function getType (): InputType
66
+ public function getType (): InputType & Type
71
67
{
72
68
return $ this ->parameter ->getType ();
73
69
}
@@ -77,8 +73,7 @@ public function hasDefaultValue(): bool
77
73
return $ this ->parameter ->hasDefaultValue ();
78
74
}
79
75
80
- /** @return mixed */
81
- public function getDefaultValue ()
76
+ public function getDefaultValue (): mixed
82
77
{
83
78
return $ this ->parameter ->getDefaultValue ();
84
79
}
0 commit comments