From 664af3d44a312bf4da04e2a64c0b5ce276a7a2a6 Mon Sep 17 00:00:00 2001 From: petecoop Date: Mon, 20 Feb 2017 10:31:11 +0000 Subject: [PATCH] use constants --- src/Utils/SchemaPrinter.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Utils/SchemaPrinter.php b/src/Utils/SchemaPrinter.php index 8d92bb0..91099d4 100644 --- a/src/Utils/SchemaPrinter.php +++ b/src/Utils/SchemaPrinter.php @@ -53,11 +53,11 @@ class SchemaPrinter private static function isBuiltInScalar($typename) { return ( - $typename === 'String' || - $typename === 'Boolean' || - $typename === 'Int' || - $typename === 'Float' || - $typename === 'ID' + $typename === Type::STRING || + $typename === Type::BOOLEAN || + $typename === Type::INT || + $typename === Type::FLOAT || + $typename === Type::ID ); }