Skip to content

Commit d645703

Browse files
committed
Fix CS
1 parent a240d37 commit d645703

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Mapping/ClassMetadata.php

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

212212
foreach ($this->getReflectionClass()->getProperties() as $property) {
213-
if ($property->hasType() && (('array' === $type = $property->getType()->getName()) || class_exists(($type)))) {
213+
if ($property->hasType() && (('array' === $type = $property->getType()->getName()) || class_exists($type))) {
214214
$this->addPropertyConstraint($property->getName(), new Valid());
215215
}
216216
}

0 commit comments

Comments
 (0)