diff --git a/composer.json b/composer.json index 85b6ca3f4..ed87abbb4 100644 --- a/composer.json +++ b/composer.json @@ -40,7 +40,7 @@ "illuminate/validation": "^9 || ^10 || ^11 || ^12", "laragraph/utils": "^1.5 || ^2", "thecodingmachine/safe": "^1 || ^2 || ^3", - "webonyx/graphql-php": "^15" + "webonyx/graphql-php": "dev-nodelist-array-access as 15.1.1" }, "require-dev": { "algolia/algoliasearch-client-php": "^3", diff --git a/tests/Unit/Schema/Directives/BaseDirectiveTest.php b/tests/Unit/Schema/Directives/BaseDirectiveTest.php index c3f3ed303..c205c8449 100644 --- a/tests/Unit/Schema/Directives/BaseDirectiveTest.php +++ b/tests/Unit/Schema/Directives/BaseDirectiveTest.php @@ -251,7 +251,7 @@ public function testHydrateShouldResetCachedArgs(): void $field = Parser::fieldDefinition('foo: ID @dummy(arg: "new value")'); $directive->hydrate( - $field->directives[0], + $field->directives->get(0), $field, ); @@ -286,7 +286,7 @@ public function __call(string $method, array $args): mixed }; $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 10382df49..03928d81c 100644 --- a/tests/Unit/Schema/ResolverProviderTest.php +++ b/tests/Unit/Schema/ResolverProviderTest.php @@ -65,7 +65,7 @@ private function constructFieldValue(string $fieldDefinition, string $parentType return new FieldValue( $typeValue, - $queryType->fields[0], + $queryType->fields->get(0), ); } }