Skip to content

Commit 8cb0767

Browse files
committed
Merge branch '3.4' into 4.2
* 3.4: Show more accurate message in profiler when missing stopwatch CS Fixes: Not double split with one array argument Remove redundant animation prefixes Remove redundant `box-sizing` prefixes Rework firewall access denied rule fixed CS Fix missing $extraDirs when open_basedir returns
2 parents 062f879 + 154b214 commit 8cb0767

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

Tests/Constraints/ChoiceValidatorTest.php

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,9 @@ public function testNullIsValid()
5454
{
5555
$this->validator->validate(
5656
null,
57-
new Choice(
58-
[
59-
'choices' => ['foo', 'bar'],
60-
]
61-
)
57+
new Choice([
58+
'choices' => ['foo', 'bar'],
59+
])
6260
);
6361

6462
$this->assertNoViolation();
@@ -100,13 +98,22 @@ public function testValidChoiceCallbackFunction()
10098

10199
public function testValidChoiceCallbackClosure()
102100
{
101+
<<<<<<< HEAD
103102
$constraint = new Choice(
104103
[
105104
'callback' => function () {
106105
return ['foo', 'bar'];
107106
},
108107
]
109108
);
109+
=======
110+
$constraint = new Choice([
111+
'strict' => true,
112+
'callback' => function () {
113+
return ['foo', 'bar'];
114+
},
115+
]);
116+
>>>>>>> 3.4
110117

111118
$this->validator->validate('bar', $constraint);
112119

0 commit comments

Comments
 (0)