From 66108bec84e27616bbeccbe6ae8d41a30e4adbf0 Mon Sep 17 00:00:00 2001 From: Ruud Kamphuis Date: Thu, 5 Apr 2018 17:14:28 +0200 Subject: [PATCH] Fix missing sprintf --- 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 5bda972..bffe726 100644 --- a/src/Type/Schema.php +++ b/src/Type/Schema.php @@ -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; }