Skip to content

Commit

Permalink
Merge f6421f2 into a50e1a8
Browse files Browse the repository at this point in the history
  • Loading branch information
gulien committed Oct 7, 2020
2 parents a50e1a8 + f6421f2 commit fc55c45
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Controller/GraphqliteController.php
Expand Up @@ -108,7 +108,7 @@ private function handlePsr7Request(ServerRequestInterface $request, Request $sym
}, $result);
// Let's return the highest result.
$statuses = array_map([$httpCodeDecider, 'decideHttpStatusCode'], $result);
$status = max($statuses);
$status = empty($statuses) ? 500 : max($statuses);
return new JsonResponse($finalResult, $status);
}
if ($result instanceof Promise) {
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Expand Up @@ -17,8 +17,8 @@
],
"require" : {
"php" : ">=7.2",
"thecodingmachine/graphqlite" : "~4.0.1",
"thecodingmachine/graphqlite-symfony-validator-bridge" : "~4.0.0",
"thecodingmachine/graphqlite" : "^4.1",
"thecodingmachine/graphqlite-symfony-validator-bridge" : "^4.1",
"symfony/framework-bundle": "^4.1.9 | ^5",
"symfony/validator": "^4.1.9 | ^5",
"symfony/translation": "^4.1.9 | ^5",
Expand Down Expand Up @@ -52,7 +52,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "4.0.x-dev"
"dev-master": "4.1.x-dev"
}
},
"minimum-stability": "dev",
Expand Down

0 comments on commit fc55c45

Please sign in to comment.