Skip to content

Commit 4bfb3ac

Browse files
committed
Merge branch '6.4' into 7.1
* 6.4: Don't call the constructor of LogicalOr
2 parents 93c6282 + 8ecc8e0 commit 4bfb3ac

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Test/ConstraintValidatorTestCase.php

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

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

0 commit comments

Comments
 (0)