Skip to content

Commit

Permalink
Fix the issue
Browse files Browse the repository at this point in the history
  • Loading branch information
vain0x committed Dec 13, 2017
1 parent 8da1567 commit cdb8098
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/Ginq/Iterator/ZipIterator.php
Expand Up @@ -100,12 +100,14 @@ public function valid()

protected function fetch()
{
$v0 = $this->it0->current();
$v1 = $this->it1->current();
$k0 = $this->it0->key();
$k1 = $this->it1->key();
$this->v = $this->valueJoinSelector->select($v0, $v1, $k0, $k1);
$this->k = $this->keyJoinSelector->select($v0, $v1, $k0, $k1);
if ($this->valid()) {
$v0 = $this->it0->current();
$v1 = $this->it1->current();
$k0 = $this->it0->key();
$k1 = $this->it1->key();
$this->v = $this->valueJoinSelector->select($v0, $v1, $k0, $k1);
$this->k = $this->keyJoinSelector->select($v0, $v1, $k0, $k1);
}
}
}

0 comments on commit cdb8098

Please sign in to comment.