Skip to content

Commit f7a51cb

Browse files
committed
QA fixes
1 parent d41bfb6 commit f7a51cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Hydrators/Hydrator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ protected function mapEntity(string $entityClassName): array
347347
$className = $mapping->targetEntity;
348348

349349
// Check if class is callable
350-
if (class_exists($className)) {
350+
if (is_string($className) && class_exists($className)) {
351351
$fields[] = new Hydrators\Fields\CollectionField($className, true, $mappedKey, $isRelationship, $fieldName, $isRequired, $isWritable);
352352
}
353353
} elseif (in_array(ORM\Mapping\ManyToMany::class, $propertyAnnotations, true)) {

0 commit comments

Comments
 (0)