Skip to content

Commit ccdaca1

Browse files
committed
Merge branch '5.4' into 6.4
* 5.4: Don't call the constructor of LogicalOr
2 parents ae68ff3 + 8797be8 commit ccdaca1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Symfony/Component/Validator/Test/ConstraintValidatorTestCase.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,7 @@ protected function expectValidateAt(int $i, string $propertyPath, mixed $value,
225225
{
226226
$validator = $this->context->getValidator()->inContext($this->context);
227227
$validator->expectValidation($i, $propertyPath, $value, $group, function ($passedConstraints) {
228-
$expectedConstraints = new LogicalOr();
229-
$expectedConstraints->setConstraints([new IsNull(), new IsIdentical([]), new IsInstanceOf(Valid::class)]);
228+
$expectedConstraints = LogicalOr::fromConstraints(new IsNull(), new IsIdentical([]), new IsInstanceOf(Valid::class));
230229

231230
Assert::assertThat($passedConstraints, $expectedConstraints);
232231
});

0 commit comments

Comments
 (0)