diff --git a/Filter/GeohashCellFilter.php b/Filter/GeohashCellFilter.php
index 9dd4d071883b4d755a9e2d676db66b9bd2599e36..de8d5bc6104b9ab0c1e7ea84782da4f6e6add742 100644
--- a/Filter/GeohashCellFilter.php
+++ b/Filter/GeohashCellFilter.php
@@ -57,6 +57,7 @@ class GeohashCellFilter implements BuilderInterface
      */
     public function toArray()
     {
+        $query = [];
         $query[$this->field] = $this->location;
         $output = $this->processArray($query);