8000 [Serializer] ObjectNormalizer: add missing parameters · symfony/symfony@58ac241 · GitHub
[go: up one dir, main page]

Skip to content

Commit 58ac241

Browse files
dunglasfabpot
authored andcommitted
[Serializer] ObjectNormalizer: add missing parameters
1 parent 330c09b commit 58ac241

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Serializer/Normalizer/ObjectNormalizer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,14 +68,14 @@ protected function extractAttributes($object, $format = null, array $context = a
6868
$attributeName = lcfirst(substr($name, 2));
6969
}
7070

71-
if (null !== $attributeName && $this->isAllowedAttribute($object, $attributeName)) {
71+
if (null !== $attributeName && $this->isAllowedAttribute($object, $attributeName, $format, $context)) {
7272
$attributes[$attributeName] = true;
7373
}
7474
}
7575

7676
// properties
7777
foreach ($reflClass->getProperties(\ReflectionProperty::IS_PUBLIC) as $reflProperty) {
78-
if ($reflProperty->isStatic() || !$this->isAllowedAttribute($object, $reflProperty->name)) {
78+
if ($reflProperty->isStatic() || !$this->isAllowedAttribute($object, $reflProperty->name, $format, $context)) {
7979
continue;
8080
}
8181

0 commit comments

Comments
 (0)
0