Skip to content

Commit 2716daa

Browse files
committed
Update return typehint for SchemaBuilder
1 parent 8aaef8d commit 2716daa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Definition/Builder/SchemaBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function __construct(TypeResolver $typeResolver, bool $enableValidation =
2323
$this->enableValidation = $enableValidation;
2424
}
2525

26-
public function getBuilder(string $name, ?string $queryAlias, ?string $mutationAlias = null, ?string $subscriptionAlias = null, array $types = []): callable
26+
public function getBuilder(string $name, ?string $queryAlias, ?string $mutationAlias = null, ?string $subscriptionAlias = null, array $types = []): \Closure
2727
{
2828
return function () use ($name, $queryAlias, $mutationAlias, $subscriptionAlias, $types): ExtensibleSchema {
2929
static $schema = null;

src/Request/Executor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function setExecutor(ExecutorInterface $executor): self
5757
return $this;
5858
}
5959

60-
public function addSchemaBuilder(string $name, callable $builder): self
60+
public function addSchemaBuilder(string $name, \Closure $builder): self
6161
{
6262
$this->schemas[$name] = $builder;
6363

0 commit comments

Comments
 (0)