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)
{
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
);
}