You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor #49881 [Validator] Throw Symfony/OutOfBounds exception instead of default one in ConstraintViolationList (VincentLanglet)
This PR was merged into the 6.3 branch.
Discussion
----------
[Validator] Throw Symfony/OutOfBounds exception instead of default one in ConstraintViolationList
| Q | A
| ------------- | ---
| Branch? | 6.3
| Bug fix? | no
| New feature? | no
| Deprecations? | no
| Tickets | Fix #... <!-- prefix each issue number with "Fix #", no need to create an issue if none exists, explain below instead -->
| License | MIT
| Doc PR | symfony/symfony-docs#... <!-- required for new features -->
Symfony seems to almost always using namespaced Exception rather than default one.
This is useful:
- In order to do custom catch
- When using static analysis and you want to track some exception and exclude others
But the ConstraintViolationList was throwing the PHP OutOfBounds exception even if a namespaced one exists for Validator component. This PR is BC and change this.
Commits
-------
8689920c49 Throw Symfony OutOfBounds exception instead of default one
0 commit comments