From 464b8fee6e056d2ef8b0bba1ffa273a504185efd Mon Sep 17 00:00:00 2001 From: Ruud Kamphuis Date: Thu, 5 Apr 2018 23:14:28 +0800 Subject: [PATCH] Fix missing sprintf (cherry picked from commit 66108be) --- src/Type/Schema.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Type/Schema.php b/src/Type/Schema.php index b4ec795..d3ff688 100644 --- a/src/Type/Schema.php +++ b/src/Type/Schema.php @@ -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; }