- Removed an unused 'methods' property
This commit is contained in:
1 parent
67aa7e513d
commit
13ccb13a0b
2 files changed
+10
-7
No files matched your search
@@ -175,9 +175,7 @@ class ReflectedClass implements ReflectedInterface
|
||||
public function getAttribute(string $attributeType): ?object
|
||||
{
|
||||
foreach($this->getAttributes(true, $attributeType) as $attribute) {
|
||||
if ($attribute->object instanceof $attributeType) {
|
||||
return $attribute;
|
||||
}
|
||||
return $attribute;
|
||||
}
|
||||
|
||||
return null;
|
||||
|
||||
Reference in new issue
Block a user