diff --git a/src/AnnotationReader.php b/src/AnnotationReader.php index 08f8112375..2e9164ab1d 100644 --- a/src/AnnotationReader.php +++ b/src/AnnotationReader.php @@ -235,8 +235,7 @@ static function ($attribute) { public function getTypeAnnotation(ReflectionClass $refClass): TypeInterface|null { try { - $type = $this->getClassAnnotation($refClass, Type::class) - ?? $this->getClassAnnotation($refClass, Input::class); + $type = $this->getClassAnnotation($refClass, Type::class); if ($type !== null && $type->isSelfType()) { $type->setClass($refClass->getName());