From d0335760d7b42e49ec6cfcba2dc38afa0457ce79 Mon Sep 17 00:00:00 2001 From: Matthew Baggett Date: Sat, 24 Jul 2021 09:11:51 +0200 Subject: [PATCH] Port schenanigans, update/created timestamps. --- src/Abstracts/AbstractCollection.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Abstracts/AbstractCollection.php b/src/Abstracts/AbstractCollection.php index 8c551b1..e52c676 100644 --- a/src/Abstracts/AbstractCollection.php +++ b/src/Abstracts/AbstractCollection.php @@ -6,6 +6,10 @@ abstract class AbstractCollection { protected array $contained = []; + public function __toArray() : array { + return $this->contained; + } + public function getIterator() { return new \ArrayIterator($this->contained);