diff --git a/src/lib/Resolver/Map/UploadMap.php b/src/lib/Resolver/Map/UploadMap.php index 9c23135..8b2a5e8 100644 --- a/src/lib/Resolver/Map/UploadMap.php +++ b/src/lib/Resolver/Map/UploadMap.php @@ -12,10 +12,15 @@ class UploadMap extends ResolverMap { - protected function map() + /** + * @return array> + */ + protected function map(): array { return [ - 'FileUpload' => [self::SCALAR_TYPE => static function (): GraphQLUploadType { return new GraphQLUploadType(); }], + 'FileUpload' => [ + self::SCALAR_TYPE => static fn (): GraphQLUploadType => new GraphQLUploadType(), + ], ]; } }