Skip to content

Commit 296d2f9

Browse files
committed
Merge branch '4.2'
* 4.2: fixed bad merge Show more accurate message in profiler when missing stopwatch CS Fixes: Not double split with one array argument [Serializer] Add default object class resolver Remove redundant animation prefixes Remove redundant `box-sizing` prefixes [VarExporter] support PHP7.4 __serialize & __unserialize Rework firewall access denied rule MetadataAwareNameConverter: Do not assume that property names are strings [VarExporter] fix exporting classes with private constructors fixed CS Fix missing $extraDirs when open_basedir returns
2 parents 22014b5 + a1a09ea commit 296d2f9

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

Tests/Constraints/ChoiceValidatorTest.php

Lines changed: 8 additions & 12 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,11 @@ public function testValidChoiceCallbackFunction()
10098

10199
public function testValidChoiceCallbackClosure()
102100
{
103-
$constraint = new Choice(
104-
[
105-
'callback' => function () {
106-
return ['foo', 'bar'];
107-
},
108-
]
109-
);
101+
$constraint = new Choice([
102+
'callback' => function () {
103+
return ['foo', 'bar'];
104+
},
105+
]);
110106

111107
$this->validator->validate('bar', $constraint);
112108

0 commit comments

Comments
 (0)