Skip to content

Commit 0c19435

Browse files
Merge branch '5.0'
* 5.0: Use PHP 7.2 minimum in tests run with github actions Fix exception messages containing exception messages
2 parents 6baec23 + d82aff1 commit 0c19435

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Normalizer/AbstractObjectNormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ public function denormalize($data, string $type, string $format = null, array $c
332332
try {
333333
$this->setAttributeValue($object, $attribute, $value, $format, $context);
334334
} catch (InvalidArgumentException $e) {
335-
throw new NotNormalizableValueException(sprintf('Failed to denormalize attribute "%s" value for class "%s": '.$e->getMessage(), $attribute, $type), $e->getCode(), $e);
335+
throw new NotNormalizableValueException(sprintf('Failed to denormalize attribute "%s" value for class "%s": ', $attribute, $type).$e->getMessage(), $e->getCode(), $e);
336336
}
337337
}
338338

0 commit comments

Comments
 (0)