diff --git a/BuilderInterface.php b/BuilderInterface.php
index cefbfce80f2eb5ae2fab8da6219da420eb763e5d..1ac974717315717257d0ca69d00f1fddf98ea562 100644
--- a/BuilderInterface.php
+++ b/BuilderInterface.php
@@ -19,7 +19,7 @@ interface BuilderInterface
     /**
      * Generates array which will be passed to elasticsearch-php client.
      *
-     * @return array
+     * @return array|object
      */
     public function toArray();