mirror of
https://github.com/retailcrm/graphql-php.git
synced 2025-02-06 07:49:24 +03:00
use constants
This commit is contained in:
parent
fc629a292d
commit
664af3d44a
@ -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
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user