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) {