Skip to content

Commit cb8ceae

Browse files
committed
Fixed #15
1 parent 09cd568 commit cb8ceae

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
#Changelog
22
All notable changes will be documented in this file
33

4-
## 0.4.2
4+
## 0.4.3 - June 16th, 2015
5+
6+
- [Bug] Fixed #15
7+
8+
## 0.4.2 - June 15th, 2015
59

610
- [Internal] Fixed issue #14 - EntityIterator cursor bug
711

8-
## 0.4.1
12+
## 0.4.1 - June 13th, 2015
913

1014
- [Internal] Added ArrayAccess to EntityIterator
1115

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
},
3535
"extra": {
3636
"branch-alias": {
37-
"dev-master": "0.4-dev"
37+
"dev-master": "0.5-dev"
3838
}
3939
}
4040
}

src/Entity/EntityIterator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function next()
6565

6666
public function valid()
6767
{
68-
return ($this->cursor < $this->count());
68+
return ($this->cursor <= max(array_keys($this->data)));
6969
}
7070

7171
protected function _getZerothEntity()

0 commit comments

Comments
 (0)