From 368a9ee2f7e45f904ed57b35a66addab196dcf72 Mon Sep 17 00:00:00 2001 From: Simon Podlipsky Date: Mon, 17 Jun 2019 14:54:05 +0200 Subject: [PATCH] Add FieldDefinition return type --- src/Type/Introspection.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Type/Introspection.php b/src/Type/Introspection.php index f0cacee..67b7abb 100644 --- a/src/Type/Introspection.php +++ b/src/Type/Introspection.php @@ -693,7 +693,7 @@ EOD; return self::$map['__DirectiveLocation']; } - public static function schemaMetaFieldDef() + public static function schemaMetaFieldDef() : FieldDefinition { if (! isset(self::$map[self::SCHEMA_FIELD_NAME])) { self::$map[self::SCHEMA_FIELD_NAME] = FieldDefinition::create([ @@ -715,7 +715,7 @@ EOD; return self::$map[self::SCHEMA_FIELD_NAME]; } - public static function typeMetaFieldDef() + public static function typeMetaFieldDef() : FieldDefinition { if (! isset(self::$map[self::TYPE_FIELD_NAME])) { self::$map[self::TYPE_FIELD_NAME] = FieldDefinition::create([ @@ -734,7 +734,7 @@ EOD; return self::$map[self::TYPE_FIELD_NAME]; } - public static function typeNameMetaFieldDef() + public static function typeNameMetaFieldDef() : FieldDefinition { if (! isset(self::$map[self::TYPE_NAME_FIELD_NAME])) { self::$map[self::TYPE_NAME_FIELD_NAME] = FieldDefinition::create([