Skip to content

Commit da20431

Browse files
committed
Merge branch '7.1' into 7.2
* 7.1: Don't call the constructor of LogicalOr [AssetMapper] Use static data providers Fix `TemplateType` handling in `AbstractObjectNormalizer`
2 parents 203a26d + 4bfb3ac commit da20431

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)