Commit 8797be8
committed
bug symfony#58316 [Form] Don't call the constructor of LogicalOr (derrabus)
This PR was merged into the 5.4 branch.
Discussion
----------
[Form] Don't call the constructor of LogicalOr
| Q | A
| ------------- | ---
| Branch? | 5.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues | N/A
| License | MIT
This PR fixes an incompatibility of our `ConstraintValidatorTestCase` with PHPUnit 11. In PHPUnit 11, the constructors of `LogicalOr` and friends are protected. The static constructor `fromConstraints()` is the proper replacement and has existed since PHPUnit 6.
Commits
-------
b5fc170 Don't call the constructor of LogicalOrFile tree
1 file changed
+1
-2
lines changed- src/Symfony/Component/Validator/Test
1 file changed
+1
-2
lines changedLines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
238 | | - | |
| 237 | + | |
239 | 238 | | |
240 | 239 | | |
241 | 240 | | |
| |||
0 commit comments