From 7082b687f85a3bfc4bc480307dda63d0332e7203 Mon Sep 17 00:00:00 2001 From: aleksey Date: Mon, 8 Feb 2016 19:11:25 +0200 Subject: [PATCH] Fixed strict standarts error --- src/Request/Batch.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 = '';