You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewInvalidArgumentException(sprintf('The annotations "@Access" and/or "@Visible" defined on "%s" are only usable in addition of annotation "@Field"', $reflector->getName()));
@@ -495,7 +493,7 @@ private static function getTypeFieldConfigurationFromReflector(GraphClass $graph
495
493
return [];
496
494
}
497
495
498
-
if ($isMethod && !$reflector->isPublic()) {
496
+
if ($reflectorinstanceof ReflectionMethod && !$reflector->isPublic()) {
499
497
thrownewInvalidArgumentException(sprintf('The Annotation "@Field" can only be applied to public method. The method "%s" is not public.', $reflector->getName()));
500
498
}
501
499
@@ -508,7 +506,16 @@ private static function getTypeFieldConfigurationFromReflector(GraphClass $graph
thrownewInvalidArgumentException(sprintf('The attribute "type" on GraphQL annotation "@%s" is missing on method "%s" and cannot be auto-guessed from type hint "%s"', $fieldAnnotationName, $reflector->getName(), (string) $reflector->getReturnType()));
0 commit comments