Skip to content

Commit

Permalink
Remove useless check (#11006)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbu authored Oct 13, 2023
1 parent 0e74a18 commit 1cec0b8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Doctrine/ORM/Mapping/Driver/AttributeReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,7 @@ public function getPropertyAttribute(ReflectionProperty $property, $attributeNam
));
}

return $this->getPropertyAttributes($property)[$attributeName]
?? ($this->isRepeatable($attributeName) ? new RepeatableAttributeCollection() : null);
return $this->getPropertyAttributes($property)[$attributeName] ?? null;
}

/**
Expand Down

0 comments on commit 1cec0b8

Please sign in to comment.