Skip to content

Commit 836a93b

Browse files
committed
fix merge
1 parent 63ea827 commit 836a93b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ protected function isAllowedAttribute($classOrObject, string $attribute, ?string
192192

193193
if ($context['_read_attributes'] ?? true) {
194194
if (!isset(self::$isReadableCache[$class.$attribute])) {
195-
self::$isReadableCache[$class.$attribute] = (\is_object($classOrObject) && $this->propertyAccessor->isReadable($classOrObject, $attribute)) || $this->hasAttributeAccessorMethod($class, $attribute);
195+
self::$isReadableCache[$class.$attribute] = (\is_object($classOrObject) && $this->propertyAccessor->isReadable($classOrObject, $attribute)) || $this->propertyInfoExtractor->isReadable($class, $attribute) || $this->hasAttributeAccessorMethod($class, $attribute);
196196
}
197197

198198
return self::$isReadableCache[$class.$attribute];

0 commit comments

Comments
 (0)