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