Skip to content

Commit 49bb55a

Browse files
updated meter param for distance
1 parent ddabbf8 commit 49bb55a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Database/Query.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,7 @@ public static function distanceEqual(string $attribute, array $values, int|float
920920
* @param bool $meters
921921
* @return Query
922922
*/
923-
public static function distanceNotEqual(string $attribute, array $values, int|float $distance, $meters = false): self
923+
public static function distanceNotEqual(string $attribute, array $values, int|float $distance, bool $meters = false): self
924924
{
925925
return new self(self::TYPE_DISTANCE_NOT_EQUAL, $attribute, [[$values,$distance,$meters]]);
926926
}
@@ -934,7 +934,7 @@ public static function distanceNotEqual(string $attribute, array $values, int|fl
934934
* @param bool $meters
935935
* @return Query
936936
*/
937-
public static function distanceGreaterThan(string $attribute, array $values, int|float $distance, $meters = false): self
937+
public static function distanceGreaterThan(string $attribute, array $values, int|float $distance, bool $meters = false): self
938938
{
939939
return new self(self::TYPE_DISTANCE_GREATER_THAN, $attribute, [[$values,$distance, $meters]]);
940940
}

0 commit comments

Comments
 (0)