diff --git a/CHANGELOG.md b/CHANGELOG.md index 22d9306f1a..0ab2356630 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,12 @@ You can find and compare releases at the [GitHub release page](https://github.co ## Unreleased +## v6.23.1 + +### Fixed + +- Fix `FieldResolver` directive stubs + ## v6.23.0 ### Added diff --git a/src/Console/stubs/directives/field_resolver_methods.stub b/src/Console/stubs/directives/field_resolver_methods.stub index a53b634830..02fe17ba67 100644 --- a/src/Console/stubs/directives/field_resolver_methods.stub +++ b/src/Console/stubs/directives/field_resolver_methods.stub @@ -1,13 +1,9 @@ /** - * Set a field resolver on the FieldValue. + * Returns a field resolver function. * - * This must call $fieldValue->setResolver() before returning - * the FieldValue. - * - * @param \Nuwave\Lighthouse\Schema\Values\FieldValue $fieldValue - * @return \Nuwave\Lighthouse\Schema\Values\FieldValue + * @return callable(mixed, array, \Nuwave\Lighthouse\Support\Contracts\GraphQLContext, \Nuwave\Lighthouse\Execution\ResolveInfo): mixed */ - public function resolveField(FieldValue $fieldValue) + public function resolveField(FieldValue $fieldValue): callable { // TODO implement the field resolver }