Skip to content

Commit 25b681e

Browse files
author
Julien Neuhart
authored
Merge pull request #75 from thecodingmachine/gulien-patch-1
Update thecodingmachine/graphqlite from 4.0 to 4.1.x-dev
2 parents a50e1a8 + 1d4da68 commit 25b681e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Controller/GraphqliteController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ private function handlePsr7Request(ServerRequestInterface $request, Request $sym
108108
}, $result);
109109
// Let's return the highest result.
110110
$statuses = array_map([$httpCodeDecider, 'decideHttpStatusCode'], $result);
111-
$status = max($statuses);
111+
$status = empty($statuses) ? 500 : max($statuses);
112112
return new JsonResponse($finalResult, $status);
113113
}
114114
if ($result instanceof Promise) {

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
],
1818
"require" : {
1919
"php" : ">=7.2",
20-
"thecodingmachine/graphqlite" : "~4.0.1",
21-
"thecodingmachine/graphqlite-symfony-validator-bridge" : "~4.0.0",
20+
"thecodingmachine/graphqlite" : "^4.1",
21+
"thecodingmachine/graphqlite-symfony-validator-bridge" : "^4.1",
2222
"symfony/framework-bundle": "^4.1.9 | ^5",
2323
"symfony/validator": "^4.1.9 | ^5",
2424
"symfony/translation": "^4.1.9 | ^5",
@@ -52,7 +52,7 @@
5252
},
5353
"extra": {
5454
"branch-alias": {
55-
"dev-master": "4.0.x-dev"
55+
"dev-master": "4.1.x-dev"
5656
}
5757
},
5858
"minimum-stability": "dev",

0 commit comments

Comments
 (0)