Skip to content

Commit

Permalink
fix(graphql): SchemaBuilderWrapper fix for "nuwave/lighthouse:6.45.0".
Browse files Browse the repository at this point in the history
(cherry picked from commit c21ef17)
  • Loading branch information
LastDragon-ru committed Sep 20, 2024
1 parent 995d2db commit 5b80fa0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/graphql/src/Testing/SchemaBuilderWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,17 @@ public function schema(): Schema {
return $this->getSchemaBuilder()->schema();
}

/**
* @update(nuwave/lighthouse): Method was added in {@see https://github.com/nuwave/lighthouse/releases/tag/v6.45.0},
* but the lowest supported version is {@see https://github.com/nuwave/lighthouse/releases/tag/v6.5.0}.
* To avoid the error the {@see Override} is missed.
*
* @phpstan-ignore method.missingOverride
*/
public function schemaHash(): string {
return $this->getSchemaBuilder()->schemaHash();
}

public function setSchema(?SchemaSourceProvider $provider): void {
// Origins
$container = Container::getInstance();
Expand Down

0 comments on commit 5b80fa0

Please sign in to comment.