From 900f9f28853589588ae3f80c2ad7e848150bc8ac Mon Sep 17 00:00:00 2001 From: Alannah Kearney Date: Mon, 27 May 2019 00:57:09 +1000 Subject: [PATCH] Fixed misnamed variable in InputCollection::merge() --- src/Input/InputCollection.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Input/InputCollection.php b/src/Input/InputCollection.php index 744de0b..1db3357 100644 --- a/src/Input/InputCollection.php +++ b/src/Input/InputCollection.php @@ -74,19 +74,19 @@ class InputCollection public static function merge(self ...$collections): self { - $items = []; + $inputs = []; foreach ($collections as $c) { - foreach ($c->items() as $type => $items) { + foreach ($c->getItems() as $type => $items) { foreach ($items as $item) { - $items[] = $item; + $inputs[] = $item; } } } $mergedCollection = new self(); - foreach ($items as $input) { + foreach ($inputs as $input) { try { $mergedCollection->append($input, true); } catch (\Exception $ex) {