66
77use GraphQL \Type \Definition \InputType ;
88use GraphQL \Type \Definition \ResolveInfo ;
9+ use GraphQL \Type \Definition \Type ;
910use Symfony \Component \Validator \Constraint ;
1011use Symfony \Component \Validator \ConstraintValidatorFactoryInterface ;
1112use Symfony \Component \Validator \Context \ExecutionContext ;
@@ -40,13 +41,8 @@ public function __construct(InputTypeParameterInterface $parameter, string $para
4041 $ this ->translator = $ translator ;
4142 }
4243
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
5046 {
5147 $ value = $ this ->parameter ->resolve ($ source , $ args , $ context , $ info );
5248
@@ -67,7 +63,7 @@ public function resolve(object|null $source, array $args, $context, ResolveInfo
6763 return $ value ;
6864 }
6965
70- public function getType (): InputType
66+ public function getType (): InputType & Type
7167 {
7268 return $ this ->parameter ->getType ();
7369 }
@@ -77,8 +73,7 @@ public function hasDefaultValue(): bool
7773 return $ this ->parameter ->hasDefaultValue ();
7874 }
7975
80- /** @return mixed */
81- public function getDefaultValue ()
76+ public function getDefaultValue (): mixed
8277 {
8378 return $ this ->parameter ->getDefaultValue ();
8479 }
0 commit comments