Skip to content

Commit 93bdc1c

Browse files
committed
Fix formatting of exception message in AbstractItemNormalizer
1 parent 568d312 commit 93bdc1c

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
@@ -947,7 +947,7 @@ protected function getAttributeValue(object $object, string $attribute, ?string
947947
$attributeValue = $this->propertyAccessor->getValue($object, $attribute);
948948

949949
if (!\is_object($attributeValue) && null !== $attributeValue) {
950-
throw new UnexpectedValueException('Unexpected non-object value for to-one relation on class `' . $object::class . '` for attribute `' . $attribute. '`.');
950+
throw new UnexpectedValueException('Unexpected non-object value for to-one relation on class `'.$object::class.'` for attribute `'.$attribute.'`.');
951951
}
952952

953953
$resourceClass = $this->resourceClassResolver->getResourceClass($attributeValue, $className);

0 commit comments

Comments
 (0)