Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b94e179

Browse files
staabmondrejmirtes
authored andcommitted
Simplify ClassReflectionExtensions
1 parent 1cb8fc2 commit b94e179

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎src/Reflection/Annotations/AnnotationsMethodsClassReflectionExtension.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function hasMethod(ClassReflection $classReflection, string $methodName):
3131
$this->methods[$classReflection->getCacheKey()][$methodName] = $method;
3232
}
3333

34-
return isset($this->methods[$classReflection->getCacheKey()][$methodName]);
34+
return true;
3535
}
3636

3737
public function getMethod(ClassReflection $classReflection, string $methodName): ExtendedMethodReflection

‎src/Reflection/Annotations/AnnotationsPropertiesClassReflectionExtension.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function hasProperty(ClassReflection $classReflection, string $propertyNa
2525
$this->properties[$classReflection->getCacheKey()][$propertyName] = $property;
2626
}
2727

28-
return isset($this->properties[$classReflection->getCacheKey()][$propertyName]);
28+
return true;
2929
}
3030

3131
public function getProperty(ClassReflection $classReflection, string $propertyName): ExtendedPropertyReflection

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /