From c7b7d44be2d3ba3208ea092ac737d5d5544b05eb Mon Sep 17 00:00:00 2001 From: David Buchmann Date: Fri, 13 Oct 2023 14:23:27 +0200 Subject: [PATCH] Remove useless check --- lib/Doctrine/ORM/Mapping/Driver/AttributeReader.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/Doctrine/ORM/Mapping/Driver/AttributeReader.php b/lib/Doctrine/ORM/Mapping/Driver/AttributeReader.php index 42b4cbaf85c..cc344bd0970 100644 --- a/lib/Doctrine/ORM/Mapping/Driver/AttributeReader.php +++ b/lib/Doctrine/ORM/Mapping/Driver/AttributeReader.php @@ -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; } /**