Skip to content

Commit

Permalink
static fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyholm committed Jul 19, 2023
1 parent 66020a3 commit 67169ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model/ErrorWithViolation.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ErrorWithViolation extends AbstractError
public static function create(ConstraintViolationInterface $violation, string $title = 'Validation failed')
{
$model = new static($title, 400);
$model->setDescription($violation->getMessage());
$model->setDescription((string) $violation->getMessage());
$model->setSource([
'parameter' => $violation->getPropertyPath(),
// @deprecated The 'message' will be removed in a future version
Expand Down

0 comments on commit 67169ad

Please sign in to comment.