Skip to content

Commit 25c04a5

Browse files
committed
Remove deprecations
1 parent ab18b29 commit 25c04a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Model/Behavior/GeocoderBehavior.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ public function findDistance(SelectQuery $query, ?float $lat = null, ?float $lng
385385
$query->enableAutoFields(true);
386386
}
387387

388-
$query->select(['distance' => $query->newExpr($sql)]);
388+
$query->select(['distance' => $query->expr($sql)]);
389389
if (isset($options['distance'])) {
390390
// Some SQL versions cannot reuse the select() distance field, so we better reuse the $sql snippet
391391
$query->where(function (QueryExpression $exp) use ($sql, $options) {

0 commit comments

Comments
 (0)