From 1cec0b82bd688b931ac15f02894ad1f89ac544bc Mon Sep 17 00:00:00 2001 From: David Buchmann Date: Fri, 13 Oct 2023 18:57:12 +0200 Subject: [PATCH] Remove useless check (#11006) --- 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; } /**