Fix missing sprintf

(cherry picked from commit 66108be)
This commit is contained in:
Ruud Kamphuis 2018-04-05 23:14:28 +08:00 committed by Vladimir Razuvaev
parent 9a8c1b09e3
commit 464b8fee6e

View File

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