From 13e2fb735d92742ab91aa04d7a262f28b3099ca4 Mon Sep 17 00:00:00 2001 From: David Buchmann Date: Thu, 11 Apr 2019 07:44:34 +0200 Subject: [PATCH] property normalizer should also pass format and context to isAllowedAttribute --- .../Component/Serializer/Normalizer/PropertyNormalizer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/Serializer/Normalizer/PropertyNormalizer.php b/src/Symfony/Component/Serializer/Normalizer/PropertyNormalizer.php index ece267873f25..84047e82c648 100644 --- a/src/Symfony/Component/Serializer/Normalizer/PropertyNormalizer.php +++ b/src/Symfony/Component/Serializer/Normalizer/PropertyNormalizer.php @@ -102,7 +102,7 @@ protected function extractAttributes($object, $format = null, array $context = [ do { foreach ($reflectionObject->getProperties() as $property) { - if (!$this->isAllowedAttribute($reflectionObject->getName(), $property->name)) { + if (!$this->isAllowedAttribute($reflectionObject->getName(), $property->name, $format, $context)) { continue; }