Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e4bd593

Browse filesBrowse files
committed
bug #49186 [Serializer] Improve exception message in UnwrappingDenormalizer (andersonamuller)
This PR was submitted for the 7.1 branch but it was squashed and merged into the 6.4 branch instead. Discussion ---------- [Serializer] Improve exception message in UnwrappingDenormalizer | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - The current code expects the path to be replaced in the message, but probably it was forgotten. Commits ------- 3c96bfb [Serializer] Improve exception message in UnwrappingDenormalizer
2 parents b49df79 + 3c96bfb commit e4bd593
Copy full SHA for e4bd593

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/Symfony/Component/Serializer/Context/Normalizer/UnwrappingDenormalizerContextBuilder.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Serializer/Context/Normalizer/UnwrappingDenormalizerContextBuilder.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function withUnwrapPath(?string $unwrapPath): static
4545
try {
4646
new PropertyPath($unwrapPath);
4747
} catch (InvalidPropertyPathException $e) {
48-
throw new InvalidArgumentException('The "%s" property path is not valid.', previous: $e);
48+
throw new InvalidArgumentException(sprintf('The "%s" property path is not valid.', $unwrapPath), previous: $e);
4949
}
5050

5151
return $this->with(UnwrappingDenormalizer::UNWRAP_PATH, $unwrapPath);

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.