Skip to content

Commit afe702b

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: Fix CS Fix CS
2 parents 8a21226 + d645703 commit afe702b

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
@@ -201,7 +201,7 @@ public function addConstraint(Constraint $constraint): static
201201
$this->cascadingStrategy = CascadingStrategy::CASCADE;
202202

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

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)