From db9c03e4898c5715bbc67245bb3597aefc725abd Mon Sep 17 00:00:00 2001 From: Julien Neuhart Date: Mon, 5 Oct 2020 15:44:07 +0200 Subject: [PATCH 1/5] Update thecodingmachine/graphqlite from 4.0 to 4.1.x-dev --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 566777e..ba4fcd8 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ ], "require" : { "php" : ">=7.2", - "thecodingmachine/graphqlite" : "~4.0.1", + "thecodingmachine/graphqlite" : "^4.1.x-dev", "thecodingmachine/graphqlite-symfony-validator-bridge" : "~4.0.0", "symfony/framework-bundle": "^4.1.9 | ^5", "symfony/validator": "^4.1.9 | ^5", From d4b7e9c75b39bfb7872325da637579e0e4450761 Mon Sep 17 00:00:00 2001 From: Julien Neuhart Date: Mon, 5 Oct 2020 15:46:53 +0200 Subject: [PATCH 2/5] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index ba4fcd8..b8016e9 100644 --- a/composer.json +++ b/composer.json @@ -52,7 +52,7 @@ }, "extra": { "branch-alias": { - "dev-master": "4.0.x-dev" + "dev-master": "4.1.x-dev" } }, "minimum-stability": "dev", From a17011125b18f12055d0674e94856a3688187a87 Mon Sep 17 00:00:00 2001 From: Julien Neuhart Date: Mon, 5 Oct 2020 17:02:32 +0200 Subject: [PATCH 3/5] Update composer.json --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index b8016e9..674c414 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ "require" : { "php" : ">=7.2", "thecodingmachine/graphqlite" : "^4.1.x-dev", - "thecodingmachine/graphqlite-symfony-validator-bridge" : "~4.0.0", + "thecodingmachine/graphqlite-symfony-validator-bridge" : "^4.1.x-dev", "symfony/framework-bundle": "^4.1.9 | ^5", "symfony/validator": "^4.1.9 | ^5", "symfony/translation": "^4.1.9 | ^5", From f5a5d328086d3a7806824f80c9192e669a940eb1 Mon Sep 17 00:00:00 2001 From: Julien Neuhart Date: Wed, 7 Oct 2020 10:27:14 +0200 Subject: [PATCH 4/5] Update composer.json --- composer.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 674c414..bd897ab 100644 --- a/composer.json +++ b/composer.json @@ -17,8 +17,8 @@ ], "require" : { "php" : ">=7.2", - "thecodingmachine/graphqlite" : "^4.1.x-dev", - "thecodingmachine/graphqlite-symfony-validator-bridge" : "^4.1.x-dev", + "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", From f6421f267f14374b1cb17d809fc306762e5eea75 Mon Sep 17 00:00:00 2001 From: Julien Neuhart Date: Wed, 7 Oct 2020 10:47:12 +0200 Subject: [PATCH 5/5] Fix PHPStan issue with max method --- Controller/GraphqliteController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Controller/GraphqliteController.php b/Controller/GraphqliteController.php index 1316201..3af8756 100644 --- a/Controller/GraphqliteController.php +++ b/Controller/GraphqliteController.php @@ -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) {