From 1a07482e3865519cb5243100e11a388e52de6e76 Mon Sep 17 00:00:00 2001 From: Marius Brandt Date: Mon, 9 Aug 2021 13:32:37 +0200 Subject: [PATCH] Add template parameters to GenericCollection --- src/GenericCollection.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/GenericCollection.php b/src/GenericCollection.php index d68e572..00720f6 100644 --- a/src/GenericCollection.php +++ b/src/GenericCollection.php @@ -6,10 +6,17 @@ namespace JTL\Generic; +use ArrayAccess; use Closure; +use Countable; +use IteratorAggregate; use Traversable; -class GenericCollection implements \IteratorAggregate, \ArrayAccess, \Countable +/** + * @template T + * @template-implements IteratorAggregate + */ +class GenericCollection implements IteratorAggregate, ArrayAccess, Countable { protected $itemList = []; protected $type;