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

Skip to content

Commit 63ffded

Browse files
committed
[Validator] add the getConstraint() to the ConstraintViolationInterface
1 parent d8d93c6 commit 63ffded

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Symfony/Component/Validator/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ CHANGELOG
44
6.3
55
---
66

7+
* Add method `getConstraint()` to `ConstraintViolationInterface`
78
* Add `Uuid::TIME_BASED_VERSIONS` to match that a UUID being validated embeds a timestamp
89
* Add the `pattern` parameter in violations of the `Regex` constraint
910

src/Symfony/Component/Validator/ConstraintViolationInterface.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@
3131
*
3232
* @author Bernhard Schussek <[email protected]>
3333
*
34-
* @method mixed getCause() Returns the cause of the violation. Not implementing it is deprecated since Symfony 6.2.
35-
* @method string __toString() Converts the violation into a string for debugging purposes. Not implementing it is deprecated since Symfony 6.1.
34+
* @method Constraint|null getConstraint() Returns the constraint whose validation caused the violation. Not implementing it is deprecated since Symfony 6.3.
35+
* @method mixed getCause() Returns the cause of the violation. Not implementing it is deprecated since Symfony 6.2.
36+
* @method string __toString() Converts the violation into a string for debugging purposes. Not implementing it is deprecated since Symfony 6.1.
3637
*/
3738
interface ConstraintViolationInterface
3839
{

0 commit comments

Comments
 (0)