From f5f6dd8c509ac78967d2a5566115da54bd72130d Mon Sep 17 00:00:00 2001 From: Benedikt Franke Date: Tue, 21 Feb 2023 18:44:15 +0100 Subject: [PATCH 1/3] Update webonyx/graphql-php --- composer.json | 2 +- tests/Unit/Schema/ResolverProviderTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 5015a1e66e..d5d64afd54 100644 --- a/composer.json +++ b/composer.json @@ -40,7 +40,7 @@ "illuminate/validation": "^9 || ^10", "laragraph/utils": "^1.5", "thecodingmachine/safe": "^1 || ^2", - "webonyx/graphql-php": "^15" + "webonyx/graphql-php": "dev-master as 15.1.1" }, "require-dev": { "algolia/algoliasearch-client-php": "^3 || ^4", diff --git a/tests/Unit/Schema/ResolverProviderTest.php b/tests/Unit/Schema/ResolverProviderTest.php index acafa2f2a7..dda31c0e14 100644 --- a/tests/Unit/Schema/ResolverProviderTest.php +++ b/tests/Unit/Schema/ResolverProviderTest.php @@ -75,7 +75,7 @@ protected function constructFieldValue(string $fieldDefinition, string $parentTy return new FieldValue( $typeValue, - $queryType->fields[0] + $queryType->fields->get(0) ); } } From 4fa8d51dff4fdb9780d38af9f6bc41f8b6590883 Mon Sep 17 00:00:00 2001 From: Benedikt Franke Date: Tue, 21 Feb 2023 20:17:33 +0100 Subject: [PATCH 2/3] fix --- tests/Unit/Schema/Directives/BaseDirectiveTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Unit/Schema/Directives/BaseDirectiveTest.php b/tests/Unit/Schema/Directives/BaseDirectiveTest.php index dfc25f4050..e509bd52c7 100644 --- a/tests/Unit/Schema/Directives/BaseDirectiveTest.php +++ b/tests/Unit/Schema/Directives/BaseDirectiveTest.php @@ -212,7 +212,7 @@ public function __call(string $method, array $args) }; $directive->hydrate( - $fieldDefinition->directives[0], + $fieldDefinition->directives->get(0), $fieldDefinition ); From d5c128abb709f069942c488e967aac75f6a8e343 Mon Sep 17 00:00:00 2001 From: Benedikt Franke Date: Wed, 22 Feb 2023 09:48:00 +0100 Subject: [PATCH 3/3] switch branch --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index d5d64afd54..764147c824 100644 --- a/composer.json +++ b/composer.json @@ -40,7 +40,7 @@ "illuminate/validation": "^9 || ^10", "laragraph/utils": "^1.5", "thecodingmachine/safe": "^1 || ^2", - "webonyx/graphql-php": "dev-master as 15.1.1" + "webonyx/graphql-php": "dev-nodelist-array-access as 15.1.1" }, "require-dev": { "algolia/algoliasearch-client-php": "^3 || ^4",