Release 2.36.0 (#5514)
This commit is contained in:
@@ -13,10 +13,10 @@ use Symfony\Component\Validator\ConstraintViolationListInterface;
|
||||
|
||||
final class ValidationFailedException extends \RuntimeException
|
||||
{
|
||||
public function __construct(private ConstraintViolationListInterface $violations, ?string $message = null)
|
||||
public function __construct(private readonly ConstraintViolationListInterface $violations, ?string $message = null)
|
||||
{
|
||||
if ($message === null) {
|
||||
$message = 'Validation failed';
|
||||
$message = 'Validation Failed';
|
||||
}
|
||||
parent::__construct($message, 400);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user