Skip to content

Commit b0a4669

Browse files
committed
Add array type to Middleware, and mark it as breaking
1 parent 145ef46 commit b0a4669

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ CHANGELOG
108108

109109
- `\Rebing\GraphQL\Support\ResolveInfoFieldsAndArguments` has been removed
110110
- `$getSelectFields` closure no longer takes a depth parameter
111+
112+
- The `$args` argument, of the `handle` method of the execution middlewares requires `array` as type.
113+
111114
### Added
112115
- Command to make an execution middleware [\#772 / mfn](https://github.com/rebing/graphql-laravel/pull/772)
113116
- Command to make a schema configuration [\#830 / matsn0w](https://github.com/rebing/graphql-laravel/pull/830)

src/Support/Middleware.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
abstract class Middleware
1010
{
11-
public function handle($root, $args, $context, ResolveInfo $info, Closure $next)
11+
public function handle($root, array $args, $context, ResolveInfo $info, Closure $next)
1212
{
1313
return $next($root, $args, $context, $info);
1414
}

0 commit comments

Comments
 (0)