Skip to content

Commit

Permalink
Merge pull request #1120 from rebing/mfn-php-cs-fixer
Browse files Browse the repository at this point in the history
Loosen php-cs-fixer constraint
  • Loading branch information
mfn authored Feb 18, 2024
2 parents 89f3b7f + 1a49ac8 commit 3254490
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
16 changes: 8 additions & 8 deletions config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -118,7 +118,7 @@
// 'message' => '',
// 'locations' => []
// ]
'error_formatter' => [\Rebing\GraphQL\GraphQL::class, 'formatError'],
'error_formatter' => [Rebing\GraphQL\GraphQL::class, 'formatError'],

/*
* Custom Error Handling
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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,
],
];

0 comments on commit 3254490

Please sign in to comment.