Skip to content

Commit ea971d3

Browse files
ycerutofabpot
authored andcommitted
Fixing typo in variable name
This condition is always `true` because `$attributesMetadata` does not exists in this `foreach` context and could overwrite values in the `$attributesMetadata` variable.
1 parent c4bfe09 commit ea971d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Mapping/Loader/AnnotationLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public function loadClassMetadata(ClassMetadataInterface $classMetadata)
4949
$attributesMetadata = $classMetadata->getAttributesMetadata();
5050

5151
foreach ($reflectionClass->getProperties() as $property) {
52-
if (!isset($attributeMetadata[$property->name])) {
52+
if (!isset($attributesMetadata[$property->name])) {
5353
$attributesMetadata[$property->name] = new AttributeMetadata($property->name);
5454
$classMetadata->addAttributeMetadata($attributesMetadata[$property->name]);
5555
}

0 commit comments

Comments
 (0)