Skip to content

Commit

Permalink
Update FieldDatatypeTrait.php
Browse files Browse the repository at this point in the history
return `$currentProperty` when `$nestedPath` is `null`
  • Loading branch information
latenzio authored Nov 15, 2024
1 parent 8a4218b commit fd91122
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Elasticsearch/Util/FieldDatatypeTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ private function getNestedFieldPath(string $resourceClass, string $property): ?s
) {
$nestedPath = $this->getNestedFieldPath($nextResourceClass, implode('.', $properties));

return null === $nestedPath ? $nestedPath : "$currentProperty.$nestedPath";
return null === $nestedPath ? $currentProperty : "$currentProperty.$nestedPath";
}

if (
Expand Down

0 comments on commit fd91122

Please sign in to comment.