Skip to content

Commit fd91122

Browse files
authored
Update FieldDatatypeTrait.php
return `$currentProperty` when `$nestedPath` is `null`
1 parent 8a4218b commit fd91122

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Elasticsearch/Util/FieldDatatypeTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ private function getNestedFieldPath(string $resourceClass, string $property): ?s
7474
) {
7575
$nestedPath = $this->getNestedFieldPath($nextResourceClass, implode('.', $properties));
7676

77-
return null === $nestedPath ? $nestedPath : "$currentProperty.$nestedPath";
77+
return null === $nestedPath ? $currentProperty : "$currentProperty.$nestedPath";
7878
}
7979

8080
if (

0 commit comments

Comments
 (0)