Skip to content

Commit ee64db6

Browse files
committed
Merge branch '6.1' into 6.2
* 6.1: Fix CS Fix CS
2 parents c16a8b2 + 14a1473 commit ee64db6

File tree

3 files changed

+298
-298
lines changed

3 files changed

+298
-298
lines changed

Mapping/ClassMetadata.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public function addConstraint(Constraint $constraint): static
202202
$this->cascadingStrategy = CascadingStrategy::CASCADE;
203203

204204
foreach ($this->getReflectionClass()->getProperties() as $property) {
205-
if ($property->hasType() && (('array' === $type = $property->getType()->getName()) || class_exists(($type)))) {
205+
if ($property->hasType() && (('array' === $type = $property->getType()->getName()) || class_exists($type))) {
206206
$this->addPropertyConstraint($property->getName(), new Valid());
207207
}
208208
}

Tests/Constraints/AbstractComparisonValidatorTestCase.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ public function testThrowsConstraintExceptionIfBothValueAndPropertyPath()
9191
{
9292
$this->expectException(ConstraintDefinitionException::class);
9393
$this->expectExceptionMessage('requires only one of the "value" or "propertyPath" options to be set, not both.');
94-
$this->createConstraint(([
94+
$this->createConstraint([
9595
'value' => 'value',
9696
'propertyPath' => 'propertyPath',
97-
]));
97+
]);
9898
}
9999

100100
/**

0 commit comments

Comments
 (0)