Commit 19f89d6
committed
minor symfony#58810 [Validator] Improve type for the
This PR was merged into the 7.2 branch.
Discussion
----------
[Validator] Improve type for the `mode` property of the Bic constraint
| Q | A
| ------------- | ---
| Branch? | 7.2
| Bug fix? | no
| New feature? | no
| Deprecations? | no
| Issues |
| License | MIT
- the property should not be nullable as the constructor prevents assigning null and the validator does not expect it either
- phpdoc types are added to let static analysis tool know about the valid modes thanks to the available class constants
This improves the new feature introduced in 7.2 (before the BC policy prevents us from fixing the nullability of the public property)
Commits
-------
aa86ec4 Improve type for the `mode` property of the Bic constraintmode property of the Bic constraint (stof)1 file changed
+9
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
62 | 65 | | |
63 | 66 | | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
69 | 72 | | |
70 | 73 | | |
71 | 74 | | |
| |||
0 commit comments