property normalizer should also pass format and context to isAllowedAttribute
This commit is contained in:
parent
32c448f639
commit
13e2fb735d
@ -102,7 +102,7 @@ class PropertyNormalizer extends AbstractObjectNormalizer
|
|||||||
|
|
||||||
do {
|
do {
|
||||||
foreach ($reflectionObject->getProperties() as $property) {
|
foreach ($reflectionObject->getProperties() as $property) {
|
||||||
if (!$this->isAllowedAttribute($reflectionObject->getName(), $property->name)) {
|
if (!$this->isAllowedAttribute($reflectionObject->getName(), $property->name, $format, $context)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user