Since TheCodingMachine\GraphQLite\Middlewares\InputFieldMiddlewareInterface is allowed to be implemented by the userland and its method requires returning an instance of the TheCodingMachine\GraphQLite\InputField (or null) - I'm sure that the InputField class should not be marked with @internal tag - because there is no way to implement middleware without knowledge of the InputField class.
|
/** |
|
* A GraphQL input field that maps to a PHP method automatically. |
|
* |
|
* @internal |
|
* |
|
* @phpstan-import-type InputObjectFieldConfig from InputObjectField |
|
* @phpstan-import-type ArgumentType from InputObjectField |
|
*/ |
|
final class InputField extends InputObjectField |
Since
TheCodingMachine\GraphQLite\Middlewares\InputFieldMiddlewareInterfaceis allowed to be implemented by the userland and its method requires returning an instance of theTheCodingMachine\GraphQLite\InputField(or null) - I'm sure that the InputField class should not be marked with@internaltag - because there is no way to implement middleware without knowledge of the InputField class.graphqlite/src/InputField.php
Lines 22 to 30 in 5ed662c