From 89499ff9e109bfec26a12bd7727021daf3ec88df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yonel=20Ceruto=20Gonz=C3=A1lez?= Date: Fri, 2 Oct 2015 13:21:45 -0400 Subject: [PATCH] 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. --- .../Component/Serializer/Mapping/Loader/AnnotationLoader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Serializer/Mapping/Loader/AnnotationLoader.php b/src/Symfony/Component/Serializer/Mapping/Loader/AnnotationLoader.php index 801c317767..6c563b44e9 100644 --- a/src/Symfony/Component/Serializer/Mapping/Loader/AnnotationLoader.php +++ b/src/Symfony/Component/Serializer/Mapping/Loader/AnnotationLoader.php @@ -49,7 +49,7 @@ class AnnotationLoader implements LoaderInterface $attributesMetadata = $classMetadata->getAttributesMetadata(); foreach ($reflectionClass->getProperties() as $property) { - if (!isset($attributeMetadata[$property->name])) { + if (!isset($attributesMetadata[$property->name])) { $attributesMetadata[$property->name] = new AttributeMetadata($property->name); $classMetadata->addAttributeMetadata($attributesMetadata[$property->name]); }