Merge pull request #267 from ruudk/patch-1

Fix missing sprintf in Schema.php
This commit is contained in:
Vladimir Razuvaev 2018-04-06 17:14:58 +08:00 committed by GitHub
commit ccbc91a97f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -271,11 +271,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;
} }