Commit ea98009
committed
fix Constraint::getErrors implementation
- remove presentation logic from implementation and dont filter returned errors by array_unique, business logic requires getErrors to return all existing errors, even if it contains duplicates
- make Validator::getErrors() return the same filtered result as before and apply array_unique when setting errors on Validator instance1 parent e994ca8 commit ea98009
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
| 85 | + | |
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
0 commit comments