From de957fb5d6e5ad382d054e51825a20dc2fe8155b Mon Sep 17 00:00:00 2001 From: Corey Frenette Date: Sat, 27 Feb 2016 15:41:20 -0400 Subject: [PATCH] Declare vars (closes #13) --- src/ReadOnlyCollection.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ReadOnlyCollection.php b/src/ReadOnlyCollection.php index b9963a2..d0c1fd8 100644 --- a/src/ReadOnlyCollection.php +++ b/src/ReadOnlyCollection.php @@ -13,6 +13,9 @@ class ReadOnlyCollection implements CollectionInterface, IteratorAggregate { use ReadableCollectionTrait; use IterableCollectionTrait; + protected $collection = []; + protected $lazy = []; + public function __construct(array $initial = []) { $this->collection = $initial; }