@@ -1403,15 +1403,15 @@ protected function handleDistanceSpatialQueries(Query $query, array &$binds, str
14031403 /**
14041404 * Handle spatial queries
14051405 *
1406- * @param string $type
14071406 * @param Query $query
14081407 * @param array<string, mixed> $binds
14091408 * @param string $attribute
1409+ * @param string $type
14101410 * @param string $alias
14111411 * @param string $placeholder
14121412 * @return string
14131413 */
1414- protected function handleSpatialQueries (string $ type , Query $ query , array &$ binds , string $ attribute , string $ alias , string $ placeholder ): string
1414+ protected function handleSpatialQueries (Query $ query , array &$ binds , string $ attribute, string $ type , string $ alias , string $ placeholder ): string
14151415 {
14161416 switch ($ query ->getMethod ()) {
14171417 case Query::TYPE_CROSSES :
@@ -1495,7 +1495,7 @@ protected function getSQLCondition(Query $query, array &$binds, array $attribute
14951495 $ attributeType = $ this ->getAttributeType ($ query ->getAttribute (), $ attributes );
14961496
14971497 if (in_array ($ attributeType , Database::SPATIAL_TYPES )) {
1498- return $ this ->handleSpatialQueries ($ attributeType , $ query , $ binds , $ attribute , $ alias , $ placeholder );
1498+ return $ this ->handleSpatialQueries ($ query , $ binds , $ attribute , $ attributeType , $ alias , $ placeholder );
14991499 }
15001500
15011501 switch ($ query ->getMethod ()) {
0 commit comments