Skip to content

Commit 6991875

Browse files
committed
Fix argument name for nested factory
1 parent 293e8ce commit 6991875

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Query/Query.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ public static function range(
4949
return new RangeQuery($field, $lt, $gt, $lte, $gte);
5050
}
5151

52-
public static function nested(string $field, QueryInterface $query): NestedQuery
52+
public static function nested(?string $path, QueryInterface $query): NestedQuery
5353
{
54-
return new NestedQuery($field, $query);
54+
return new NestedQuery($path, $query);
5555
}
5656

5757
public static function match(string $field, string $query): MatchQuery

0 commit comments

Comments
 (0)