Commit 72d5bae
authored
[1.x] fix(core): change caching logic for validation attributes (#4216)
* fix(core): change caching logic for validation attributes
* docs: deprecate recently added constant
I guess we could get away with just removing it, but as there is a remote chance a third party implementation is already relying on it I wouldn't remove it right now..
* refactor: use string interpolation
* fix: call `getRules() instead` of using `$this->rules` directly
Changing this also adds support for the `UserValidator` which defines `getRules()` itself1 parent 6141e5e commit 72d5bae
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
| |||
96 | 98 | | |
97 | 99 | | |
98 | 100 | | |
99 | | - | |
100 | | - | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
101 | 105 | | |
102 | 106 | | |
103 | 107 | | |
104 | 108 | | |
105 | 109 | | |
106 | | - | |
| 110 | + | |
107 | 111 | | |
108 | 112 | | |
109 | 113 | | |
110 | 114 | | |
111 | | - | |
| 115 | + | |
112 | 116 | | |
113 | 117 | | |
114 | 118 | | |
| |||
0 commit comments