@@ -434,7 +434,7 @@ public static function and(array $queries): string
434434 */
435435 public static function distanceEqual (string $ attribute , array $ values , int |float $ distance , bool $ meters = true ): string
436436 {
437- return (new Query ('distanceEqual ' , $ attribute , [$ values , $ distance , $ meters ]))->__toString ();
437+ return (new Query ('distanceEqual ' , $ attribute , [[ $ values , $ distance , $ meters] ]))->__toString ();
438438 }
439439
440440 /**
@@ -447,7 +447,7 @@ public static function distanceEqual(string $attribute, array $values, int|float
447447 */
448448 public static function distanceNotEqual (string $ attribute , array $ values , int |float $ distance , bool $ meters = true ): string
449449 {
450- return (new Query ('distanceNotEqual ' , $ attribute , [$ values , $ distance , $ meters ]))->__toString ();
450+ return (new Query ('distanceNotEqual ' , $ attribute , [[ $ values , $ distance , $ meters] ]))->__toString ();
451451 }
452452
453453 /**
@@ -460,7 +460,7 @@ public static function distanceNotEqual(string $attribute, array $values, int|fl
460460 */
461461 public static function distanceGreaterThan (string $ attribute , array $ values , int |float $ distance , bool $ meters = true ): string
462462 {
463- return (new Query ('distanceGreaterThan ' , $ attribute , [$ values , $ distance , $ meters ]))->__toString ();
463+ return (new Query ('distanceGreaterThan ' , $ attribute , [[ $ values , $ distance , $ meters] ]))->__toString ();
464464 }
465465
466466 /**
@@ -474,7 +474,7 @@ public static function distanceGreaterThan(string $attribute, array $values, int
474474 */
475475 public static function distanceLessThan (string $ attribute , array $ values , int |float $ distance , bool $ meters = true ): string
476476 {
477- return (new Query ('distanceLessThan ' , $ attribute , [$ values , $ distance , $ meters ]))->__toString ();
477+ return (new Query ('distanceLessThan ' , $ attribute , [[ $ values , $ distance , $ meters] ]))->__toString ();
478478 }
479479
480480 /**
@@ -486,7 +486,7 @@ public static function distanceLessThan(string $attribute, array $values, int|fl
486486 */
487487 public static function intersects (string $ attribute , array $ values ): string
488488 {
489- return (new Query ('intersects ' , $ attribute , $ values ))->__toString ();
489+ return (new Query ('intersects ' , $ attribute , [ $ values] ))->__toString ();
490490 }
491491
492492 /**
@@ -498,7 +498,7 @@ public static function intersects(string $attribute, array $values): string
498498 */
499499 public static function notIntersects (string $ attribute , array $ values ): string
500500 {
501- return (new Query ('notIntersects ' , $ attribute , $ values ))->__toString ();
501+ return (new Query ('notIntersects ' , $ attribute , [ $ values] ))->__toString ();
502502 }
503503
504504 /**
@@ -510,7 +510,7 @@ public static function notIntersects(string $attribute, array $values): string
510510 */
511511 public static function crosses (string $ attribute , array $ values ): string
512512 {
513- return (new Query ('crosses ' , $ attribute , $ values ))->__toString ();
513+ return (new Query ('crosses ' , $ attribute , [ $ values] ))->__toString ();
514514 }
515515
516516 /**
@@ -522,7 +522,7 @@ public static function crosses(string $attribute, array $values): string
522522 */
523523 public static function notCrosses (string $ attribute , array $ values ): string
524524 {
525- return (new Query ('notCrosses ' , $ attribute , $ values ))->__toString ();
525+ return (new Query ('notCrosses ' , $ attribute , [ $ values] ))->__toString ();
526526 }
527527
528528 /**
@@ -534,7 +534,7 @@ public static function notCrosses(string $attribute, array $values): string
534534 */
535535 public static function overlaps (string $ attribute , array $ values ): string
536536 {
537- return (new Query ('overlaps ' , $ attribute , $ values ))->__toString ();
537+ return (new Query ('overlaps ' , $ attribute , [ $ values] ))->__toString ();
538538 }
539539
540540 /**
@@ -546,7 +546,7 @@ public static function overlaps(string $attribute, array $values): string
546546 */
547547 public static function notOverlaps (string $ attribute , array $ values ): string
548548 {
549- return (new Query ('notOverlaps ' , $ attribute , $ values ))->__toString ();
549+ return (new Query ('notOverlaps ' , $ attribute , [ $ values] ))->__toString ();
550550 }
551551
552552 /**
@@ -558,7 +558,7 @@ public static function notOverlaps(string $attribute, array $values): string
558558 */
559559 public static function touches (string $ attribute , array $ values ): string
560560 {
561- return (new Query ('touches ' , $ attribute , $ values ))->__toString ();
561+ return (new Query ('touches ' , $ attribute , [ $ values] ))->__toString ();
562562 }
563563
564564 /**
@@ -570,6 +570,6 @@ public static function touches(string $attribute, array $values): string
570570 */
571571 public static function notTouches (string $ attribute , array $ values ): string
572572 {
573- return (new Query ('notTouches ' , $ attribute , $ values ))->__toString ();
573+ return (new Query ('notTouches ' , $ attribute , [ $ values] ))->__toString ();
574574 }
575575}
0 commit comments