mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-25 22:36:02 +03:00
Fix missing sprintf
This commit is contained in:
parent
87729589e0
commit
66108bec84
@ -271,11 +271,11 @@ class Schema
|
||||
|
||||
foreach ($types as $index => $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',
|
||||
$index,
|
||||
Utils::printSafe($type)
|
||||
);
|
||||
));
|
||||
}
|
||||
yield $type;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user