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
thrownewException('Could not find type for method ' . $this->getMethodFullName($method) . '. Either type hint the return value, or specify the type with `@API\Field` annotation.');
@@ -129,7 +107,7 @@ private function getArgumentsFromTypeHint(ReflectionMethod $method, array $argsF
129
107
thrownewException('The following arguments were declared via `@API\Argument` annotation but do not match actual parameter names on method ' . $this->getMethodFullName($method) . '. Either rename or remove the annotations: ' . implode(', ', $extraAnnotations));
130
108
}
131
109
132
-
return$args;
110
+
$field->args =$args;
133
111
}
134
112
135
113
/**
@@ -193,4 +171,34 @@ private function getTypeFromDocBock(ReflectionMethod $method, DocBlockReader $do
193
171
194
172
returnnull;
195
173
}
174
+
175
+
/**
176
+
* Complete field type from doc blocks and type hints
thrownewException('Could not find type for method ' . $this->getMethodFullName($method) . '. Either type hint the return value, or specify the type with `@API\Field` annotation.');
0 commit comments