Skip to content

Commit fcc4a67

Browse files
author
Fredrick Peter
committed
Collection getIterator Upgrade
1 parent 1b25e37 commit fcc4a67

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ Prior to installing `php-orm-database` get the [Composer](https://getcomposer.or
108108
**Step 1** — update your `composer.json`:
109109
```composer.json
110110
"require": {
111-
"peterson/php-orm-database": "^3.1.8"
111+
"peterson/php-orm-database": "^3.1.9"
112112
}
113113
```
114114

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
},
3939
"extra": {
4040
"branch-alias": {
41-
"dev-main": "3.1.8-dev"
41+
"dev-main": "3.1.9-dev"
4242
}
4343
},
4444
"minimum-stability": "stable",

src/Collections/Collection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ public function __construct($items = [])
5757
public function getIterator() : Traversable
5858
{
5959
// Automatically wrap Mappers into an array
60-
$this->items = $this->wrapArrayIntoCollectionMappers($this->items);
60+
$items = $this->wrapArrayIntoCollectionMappers($this->items);
6161

62-
return new ArrayIterator($this->items);
62+
return new ArrayIterator($items);
6363
}
6464

6565
/**

0 commit comments

Comments
 (0)