@@ -103,7 +103,7 @@ |
||
103 | 103 | * @param TypeDefinition|string $type |
104 | 104 | * @return bool |
105 | 105 | */ |
106 | - public function instanceOf($type): bool |
|
106 | + public function instanceof($type): bool |
|
107 | 107 | { |
108 | 108 | /** |
109 | 109 | * @var TypeDefinition $type |
@@ -30,15 +30,15 @@ |
||
30 | 30 | */ |
31 | 31 | public static function getType(): TypeInterface |
32 | 32 | { |
33 | - return Type::of(Type::INTERFACE); |
|
33 | + return Type::of(Type::interface); |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | /** |
37 | 37 | * @param TypeDefinition $definition |
38 | 38 | * @return bool |
39 | 39 | */ |
40 | - public function instanceOf($definition): bool |
|
40 | + public function instanceof($definition): bool |
|
41 | 41 | { |
42 | - return $this->isImplements($definition) || parent::instanceOf($definition); |
|
42 | + return $this->isImplements($definition) || parent::instanceof($definition); |
|
43 | 43 | } |
44 | 44 | } |