diff --git a/README.md b/README.md index c087fa6..08b0a4f 100644 --- a/README.md +++ b/README.md @@ -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" } ``` diff --git a/composer.json b/composer.json index 35765cb..5193597 100644 --- a/composer.json +++ b/composer.json @@ -38,7 +38,7 @@ }, "extra": { "branch-alias": { - "dev-main": "3.1.8-dev" + "dev-main": "3.1.9-dev" } }, "minimum-stability": "stable", diff --git a/src/Collections/Collection.php b/src/Collections/Collection.php index 8208c2c..ee96d53 100644 --- a/src/Collections/Collection.php +++ b/src/Collections/Collection.php @@ -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); } /**