diff --git a/composer.json b/composer.json index b205b3f8..471088de 100644 --- a/composer.json +++ b/composer.json @@ -44,7 +44,7 @@ }, "require-dev": { "ext-pdo_sqlite": "*", - "friendsofphp/php-cs-fixer": "3.37.1", + "friendsofphp/php-cs-fixer": "^3", "mfn/php-cs-fixer-config": "^2", "mockery/mockery": "^1.2", "phpstan/phpstan": "^1", diff --git a/config/config.php b/config/config.php index c481063b..5185db30 100644 --- a/config/config.php +++ b/config/config.php @@ -9,7 +9,7 @@ // The controller/method to use in GraphQL request. // Also supported array syntax: `[\Rebing\GraphQL\GraphQLController::class, 'query']` - 'controller' => \Rebing\GraphQL\GraphQLController::class . '@query', + 'controller' => Rebing\GraphQL\GraphQLController::class . '@query', // Any middleware for the graphql route group // This middleware will apply to all schemas @@ -118,7 +118,7 @@ // 'message' => '', // 'locations' => [] // ] - 'error_formatter' => [\Rebing\GraphQL\GraphQL::class, 'formatError'], + 'error_formatter' => [Rebing\GraphQL\GraphQL::class, 'formatError'], /* * Custom Error Handling @@ -127,7 +127,7 @@ * * The default handler will pass exceptions to laravel Error Handling mechanism */ - 'errors_handler' => [\Rebing\GraphQL\GraphQL::class, 'handleErrors'], + 'errors_handler' => [Rebing\GraphQL\GraphQL::class, 'handleErrors'], /* * Options to limit the query complexity and depth. See the doc @@ -144,13 +144,13 @@ * You can define your own pagination type. * Reference \Rebing\GraphQL\Support\PaginationType::class */ - 'pagination_type' => \Rebing\GraphQL\Support\PaginationType::class, + 'pagination_type' => Rebing\GraphQL\Support\PaginationType::class, /* * You can define your own simple pagination type. * Reference \Rebing\GraphQL\Support\SimplePaginationType::class */ - 'simple_pagination_type' => \Rebing\GraphQL\Support\SimplePaginationType::class, + 'simple_pagination_type' => Rebing\GraphQL\Support\SimplePaginationType::class, /* * Overrides the default field resolver @@ -208,10 +208,10 @@ * Execution middlewares */ 'execution_middleware' => [ - \Rebing\GraphQL\Support\ExecutionMiddleware\ValidateOperationParamsMiddleware::class, + Rebing\GraphQL\Support\ExecutionMiddleware\ValidateOperationParamsMiddleware::class, // AutomaticPersistedQueriesMiddleware listed even if APQ is disabled, see the docs for the `'apq'` configuration - \Rebing\GraphQL\Support\ExecutionMiddleware\AutomaticPersistedQueriesMiddleware::class, - \Rebing\GraphQL\Support\ExecutionMiddleware\AddAuthUserContextValueMiddleware::class, + Rebing\GraphQL\Support\ExecutionMiddleware\AutomaticPersistedQueriesMiddleware::class, + Rebing\GraphQL\Support\ExecutionMiddleware\AddAuthUserContextValueMiddleware::class, // \Rebing\GraphQL\Support\ExecutionMiddleware\UnusedVariablesMiddleware::class, ], ];