@@ -1620,12 +1620,11 @@ declare(strict_types = 1);
16201620namespace App\GraphQL\Queries;
16211621
16221622use Illuminate\Support\Facades\Auth;
1623- use Closure;
16241623use GraphQL\Type\Definition\ResolveInfo;
16251624
16261625class UsersQuery extends Query
16271626{
1628- public function authorize($root, array $args, $ctx, ResolveInfo $resolveInfo = null, Closure $getSelectFields = null ): bool
1627+ public function authorize($root, array $args, $ctx, ResolveInfo $resolveInfo = null): bool
16291628 {
16301629 // true, if logged in
16311630 return ! Auth::guest();
@@ -1642,12 +1641,11 @@ declare(strict_types = 1);
16421641namespace App\GraphQL\Queries;
16431642
16441643use Illuminate\Support\Facades\Auth;
1645- use Closure;
16461644use GraphQL\Type\Definition\ResolveInfo;
16471645
16481646class UsersQuery extends Query
16491647{
1650- public function authorize($root, array $args, $ctx, ResolveInfo $resolveInfo = null, Closure $getSelectFields = null ): bool
1648+ public function authorize($root, array $args, $ctx, ResolveInfo $resolveInfo = null): bool
16511649 {
16521650 if (isset($args['id'])) {
16531651 return Auth::id() == $args['id'];
@@ -1667,12 +1665,11 @@ declare(strict_types = 1);
16671665namespace App\GraphQL\Queries;
16681666
16691667use Illuminate\Support\Facades\Auth;
1670- use Closure;
16711668use GraphQL\Type\Definition\ResolveInfo;
16721669
16731670class UsersQuery extends Query
16741671{
1675- public function authorize($root, array $args, $ctx, ResolveInfo $resolveInfo = null, Closure $getSelectFields = null ): bool
1672+ public function authorize($root, array $args, $ctx, ResolveInfo $resolveInfo = null): bool
16761673 {
16771674 if (isset($args['id'])) {
16781675 return Auth::id() == $args['id'];
0 commit comments