diff --git a/composer.json b/composer.json index 5015a1e66e..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": "^15" + "webonyx/graphql-php": "dev-nodelist-array-access as 15.1.1" }, "require-dev": { "algolia/algoliasearch-client-php": "^3 || ^4", 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 ); diff --git a/tests/Unit/Schema/ResolverProviderTest.php b/tests/Unit/Schema/ResolverProviderTest.php index 83ae5db9f9..c25d3091ba 100644 --- a/tests/Unit/Schema/ResolverProviderTest.php +++ b/tests/Unit/Schema/ResolverProviderTest.php @@ -68,7 +68,7 @@ protected function constructFieldValue(string $fieldDefinition, string $parentTy return new FieldValue( $typeValue, - $queryType->fields[0] + $queryType->fields->get(0) ); } }