From 29dedac98ef8daaef86398464033c7043c665f51 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Sat, 27 Sep 2025 10:59:46 +0200 Subject: [PATCH] Simplify ClassReflectionExtensions --- .../Annotations/AnnotationsMethodsClassReflectionExtension.php | 2 +- .../AnnotationsPropertiesClassReflectionExtension.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Reflection/Annotations/AnnotationsMethodsClassReflectionExtension.php b/src/Reflection/Annotations/AnnotationsMethodsClassReflectionExtension.php index f327e74606..e1da082ca1 100644 --- a/src/Reflection/Annotations/AnnotationsMethodsClassReflectionExtension.php +++ b/src/Reflection/Annotations/AnnotationsMethodsClassReflectionExtension.php @@ -31,7 +31,7 @@ public function hasMethod(ClassReflection $classReflection, string $methodName): $this->methods[$classReflection->getCacheKey()][$methodName] = $method; } - return isset($this->methods[$classReflection->getCacheKey()][$methodName]); + return true; } public function getMethod(ClassReflection $classReflection, string $methodName): ExtendedMethodReflection diff --git a/src/Reflection/Annotations/AnnotationsPropertiesClassReflectionExtension.php b/src/Reflection/Annotations/AnnotationsPropertiesClassReflectionExtension.php index 4e71dc4856..cf39bebec9 100644 --- a/src/Reflection/Annotations/AnnotationsPropertiesClassReflectionExtension.php +++ b/src/Reflection/Annotations/AnnotationsPropertiesClassReflectionExtension.php @@ -25,7 +25,7 @@ public function hasProperty(ClassReflection $classReflection, string $propertyNa $this->properties[$classReflection->getCacheKey()][$propertyName] = $property; } - return isset($this->properties[$classReflection->getCacheKey()][$propertyName]); + return true; } public function getProperty(ClassReflection $classReflection, string $propertyName): ExtendedPropertyReflection