Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix cs
  • Loading branch information
VincentLanglet committed Jul 31, 2023
commit d73f2a7f82b3305dde6aa4a16591a767781cd29c
2 changes: 1 addition & 1 deletion src/Symfony/Component/HttpFoundation/ParameterBag.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public function getEnum(string $key, string $class, \BackedEnum $default = null)
try {
return $class::from($value);
} catch (\ValueError|\TypeError $e) {
throw new BadRequestException(sprintf('Parameter "%s" cannot be converted to enum: %s.', $key, $e->getMessage()), $e->getCode(), $e);
throw new BadRequestException(sprintf('Parameter "%s" cannot be converted to enum: "%s".', $key, $e->getMessage()), $e->getCode(), $e);
}
}

Expand Down