Skip to content

Commit f7277d2

Browse files
alexander-schranzsaimaz
authored andcommitted
fixed checking for exist property in document parser (#790)
1 parent b638601 commit f7277d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Mapping/DocumentParser.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ private function getDocumentPropertiesReflection(\ReflectionClass $reflectionCla
439439
$properties = [];
440440

441441
foreach ($reflectionClass->getProperties() as $property) {
442-
if (!in_array($property->getName(), $properties)) {
442+
if (!array_key_exists($property->getName(), $properties)) {
443443
$properties[$property->getName()] = $property;
444444
}
445445
}

0 commit comments

Comments
 (0)