Skip to content

Commit edbd043

Browse files
committed
feature #47734 [Validator] add the getCause() to the ConstraintViolationInterface (xabbuh)
This PR was merged into the 6.2 branch. Discussion ---------- [Validator] add the getCause() to the ConstraintViolationInterface | Q | A | ------------- | --- | Branch? | 6.2 | Bug fix? | no | New feature? | yes | Deprecations? | yes | Tickets | | License | MIT | Doc PR | Commits ------- f39b049 add the getCause() to the ConstraintViolationInterface
2 parents b7bc764 + f39b049 commit edbd043

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
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.2
55
---
66

7+
* Add method `getCause()` to `ConstraintViolationInterface`
78
* Add the `When` constraint and validator
89
* Deprecate the "loose" e-mail validation mode, use "html5" instead
910
* Add the `negate` option to the `Expression` constraint, to inverse the logic of the violation's creation

src/Symfony/Component/Validator/ConstraintViolationInterface.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
*
3232
* @author Bernhard Schussek <bschussek@gmail.com>
3333
*
34+
* @method mixed getCause() Returns the cause of the violation. Not implementing it is deprecated since Symfony 6.2.
3435
* @method string __toString() Converts the violation into a string for debugging purposes. Not implementing it is deprecated since Symfony 6.1.
3536
*/
3637
interface ConstraintViolationInterface

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy