Test Failed
Push — master ( dbe410...b8c007 )
by Kirill
02:19
created
src/Definition/InterfaceDefinition.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,15 +31,15 @@
 block discarded – undo
31 31
      */
32 32
     public static function getType(): TypeInterface
33 33
     {
34
-        return Type::of(Type::INTERFACE);
34
+        return Type::of(Type::interface);
35 35
     }
36 36
 
37 37
     /**
38 38
      * @param TypeDefinition $definition
39 39
      * @return bool
40 40
      */
41
-    public function instanceOf(TypeDefinition $definition): bool
41
+    public function instanceof(TypeDefinition $definition): bool
42 42
     {
43
-        return $this->isImplements($definition) || parent::instanceOf($definition);
43
+        return $this->isImplements($definition) || parent::instanceof($definition);
44 44
     }
45 45
 }
Please login to merge, or discard this patch.
src/Contracts/Type.php 1 patch
Upper-Lower-Casing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     /**
38 38
      * @var string
39 39
      */
40
-    public const INTERFACE = 'Interface';
40
+    public const interface = 'Interface';
41 41
 
42 42
     /**
43 43
      * @var string
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
     public const ROOT_TYPES = [
114 114
         self::SCALAR,
115 115
         self::OBJECT,
116
-        self::INTERFACE,
116
+        self::interface,
117 117
         self::UNION,
118 118
         self::ENUM,
119 119
         self::INPUT_OBJECT,
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
     public const ALLOWS_TO_OUTPUT = [
142 142
         self::SCALAR,
143 143
         self::OBJECT,
144
-        self::INTERFACE,
144
+        self::interface,
145 145
         self::UNION,
146 146
         self::ENUM,
147 147
         self::INPUT_OBJECT,
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
      * @var string[]|array[]
159 159
      */
160 160
     public const INHERITANCE_TREE = [
161
-        self::INTERFACE => [
161
+        self::interface => [
162 162
             self::OBJECT => [
163 163
                 self::INPUT_OBJECT
164 164
             ],
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
      * @param Type $type
196 196
      * @return bool
197 197
      */
198
-    public function instanceOf(Type $type): bool;
198
+    public function instanceof(Type $type): bool;
199 199
 
200 200
     /**
201 201
      * @param string $type
Please login to merge, or discard this patch.