File tree 2 files changed +4
-4
lines changed 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -123,7 +123,7 @@ catch (ValidationFailedException $exception) {
123
123
// exception message will always be the first error thrown
124
124
$message = $exception->getMessage();
125
125
// value that failed validation
126
- $value = $exception->getValue ();
126
+ $value = $exception->getInvalidValue ();
127
127
// get access to all errors
128
128
// returns a ConstraintViolationList object like in the validate method
129
129
$errors = $exception->getViolations();
Original file line number Diff line number Diff line change @@ -8,16 +8,16 @@ class ValidationFailedException extends \RuntimeException
8
8
{
9
9
public function __construct (
10
10
string $ message ,
11
- private readonly mixed $ value ,
11
+ private readonly mixed $ invalidValue ,
12
12
private readonly ConstraintViolationListInterface $ violations ,
13
13
)
14
14
{
15
15
parent ::__construct ($ message );
16
16
}
17
17
18
- public function getValue (): mixed
18
+ public function getInvalidValue (): mixed
19
19
{
20
- return $ this ->value ;
20
+ return $ this ->invalidValue ;
21
21
}
22
22
23
23
public function getViolations (): ConstraintViolationListInterface
You can’t perform that action at this time.
0 commit comments