Skip to content

Commit

Permalink
Collection getIterator Upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
Fredrick Peter committed May 18, 2023
1 parent 1b25e37 commit fcc4a67
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ Prior to installing `php-orm-database` get the [Composer](https://getcomposer.or
**Step 1** — update your `composer.json`:
```composer.json
"require": {
"peterson/php-orm-database": "^3.1.8"
"peterson/php-orm-database": "^3.1.9"
}
```

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
"extra": {
"branch-alias": {
"dev-main": "3.1.8-dev"
"dev-main": "3.1.9-dev"
}
},
"minimum-stability": "stable",
Expand Down
4 changes: 2 additions & 2 deletions src/Collections/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ public function __construct($items = [])
public function getIterator() : Traversable
{
// Automatically wrap Mappers into an array
$this->items = $this->wrapArrayIntoCollectionMappers($this->items);
$items = $this->wrapArrayIntoCollectionMappers($this->items);

return new ArrayIterator($this->items);
return new ArrayIterator($items);
}

/**
Expand Down

0 comments on commit fcc4a67

Please sign in to comment.