Skip to content

Commit 5b06142

Browse files
committed
Don't call the constructor of LogicalOr
1 parent 9c483af commit 5b06142

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
@@ -234,8 +234,7 @@ protected function expectValidateAt(int $i, string $propertyPath, $value, $group
234234
{
235235
$validator = $this->context->getValidator()->inContext($this->context);
236236
$validator->expectValidation($i, $propertyPath, $value, $group, function ($passedConstraints) {
237-
$expectedConstraints = new LogicalOr();
238-
$expectedConstraints->setConstraints([new IsNull(), new IsIdentical([]), new IsInstanceOf(Valid::class)]);
237+
$expectedConstraints = LogicalOr::fromConstraints(new IsNull(), new IsIdentical([]), new IsInstanceOf(Valid::class));
239238

240239
Assert::assertThat($passedConstraints, $expectedConstraints);
241240
});

0 commit comments

Comments
 (0)