Skip to content

Commit 664af3d

Browse files
committed
use constants
1 parent fc629a2 commit 664af3d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Utils/SchemaPrinter.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ private static function isIntrospectionType($typename)
5353
private static function isBuiltInScalar($typename)
5454
{
5555
return (
56-
$typename === 'String' ||
57-
$typename === 'Boolean' ||
58-
$typename === 'Int' ||
59-
$typename === 'Float' ||
60-
$typename === 'ID'
56+
$typename === Type::STRING ||
57+
$typename === Type::BOOLEAN ||
58+
$typename === Type::INT ||
59+
$typename === Type::FLOAT ||
60+
$typename === Type::ID
6161
);
6262
}
6363

0 commit comments

Comments
 (0)