From 8cfaa6ad260b8bb30a58c5570736a3a8a7774990 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malte=20D=C3=B6lker?= Date: Thu, 15 Dec 2022 14:18:26 +0100 Subject: [PATCH] Fix AnnotationReader returning Input classes as Type classes. --- src/AnnotationReader.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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());