diff --git a/src/Request/Batch.php b/src/Request/Batch.php index 3a6d33d..96d18f6 100644 --- a/src/Request/Batch.php +++ b/src/Request/Batch.php @@ -52,7 +52,7 @@ public function __construct($type = null, $consistency = null, $options = []) { public function getBody() { return pack('C', $this->_batchType) . pack('n', count($this->_queryArray)) . implode('', $this->_queryArray) - . self::queryParameters($this->_consistency, $this->_options); + . self::queryParameters($this->_consistency, [], $this->_options); } /** @@ -87,14 +87,15 @@ public function appendQueryId($queryId, array $values = []) { return $this; } - + /** * * @param int $consistency + * @param array $values * @param array $options * @return string */ - public static function queryParameters($consistency, array $options = []){ + public static function queryParameters($consistency, array $values = [], array $options = []){ $flags = 0; $optional = '';