use constants

This commit is contained in:
petecoop 2017-02-20 10:31:11 +00:00
parent fc629a292d
commit 664af3d44a

View File

@ -53,11 +53,11 @@ class SchemaPrinter
private static function isBuiltInScalar($typename) private static function isBuiltInScalar($typename)
{ {
return ( return (
$typename === 'String' || $typename === Type::STRING ||
$typename === 'Boolean' || $typename === Type::BOOLEAN ||
$typename === 'Int' || $typename === Type::INT ||
$typename === 'Float' || $typename === Type::FLOAT ||
$typename === 'ID' $typename === Type::ID
); );
} }