Skip to content

Commit c6c1c69

Browse files
authored
remove type casting
1 parent 40c2dd1 commit c6c1c69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Serializer/AbstractItemNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ public function denormalize(mixed $data, string $class, ?string $format = null,
276276
$attribute = $this->nameConverter ? $this->nameConverter->denormalize((string) $attribute) : $attribute;
277277
$propertyMetadata = $this->propertyMetadataFactory->create($resourceClass, $attribute, $options);
278278
$attributeExtraProperties = $propertyMetadata->getExtraProperties() ?? [];
279-
$throwOnPropertyAccessDenied = (bool) ($attributeExtraProperties['throw_on_access_denied'] ?? $throwOnAccessDenied);
279+
$throwOnPropertyAccessDenied = $attributeExtraProperties['throw_on_access_denied'] ?? $throwOnAccessDenied;
280280
if (!\in_array($attribute, $propertyNames, true)) {
281281
continue;
282282
}

0 commit comments

Comments
 (0)