Skip to content

Commit

Permalink
same as previous commit for multi ResultSet
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobion committed Jun 19, 2018
1 parent 5987630 commit 8f54087
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions lib/Elastica/Multi/ResultSet.php
Expand Up @@ -2,7 +2,6 @@
namespace Elastica\Multi;

use Elastica\Response;
use Elastica\ResultSet as BaseResultSet;

/**
* Elastica multi search result set
Expand Down Expand Up @@ -36,8 +35,8 @@ class ResultSet implements \Iterator, \ArrayAccess, \Countable
/**
* Constructs ResultSet object.
*
* @param \Elastica\Response $response
* @param BaseResultSet[]
* @param \Elastica\Response $response
* @param \Elastica\ResultSet[] $resultSets
*/
public function __construct(Response $response, $resultSets)
{
Expand Down Expand Up @@ -80,13 +79,11 @@ public function hasError()
}

/**
* @return bool|\Elastica\ResultSet
* @return \Elastica\ResultSet
*/
public function current()
{
return $this->valid()
? $this->_resultSets[$this->key()]
: false;
return $this->_resultSets[$this->key()];
}

/**
Expand Down

0 comments on commit 8f54087

Please sign in to comment.