mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-29 08:26:02 +03:00
parent
9a8c1b09e3
commit
464b8fee6e
@ -251,11 +251,11 @@ class Schema
|
|||||||
|
|
||||||
foreach ($types as $index => $type) {
|
foreach ($types as $index => $type) {
|
||||||
if (!$type instanceof Type) {
|
if (!$type instanceof Type) {
|
||||||
throw new InvariantViolation(
|
throw new InvariantViolation(sprintf(
|
||||||
'Each entry of schema types must be instance of GraphQL\Type\Definition\Type but entry at %s is %s',
|
'Each entry of schema types must be instance of GraphQL\Type\Definition\Type but entry at %s is %s',
|
||||||
$index,
|
$index,
|
||||||
Utils::printSafe($type)
|
Utils::printSafe($type)
|
||||||
);
|
));
|
||||||
}
|
}
|
||||||
yield $type;
|
yield $type;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user