From cdc241a063479580369963948cf6c7e1876aee5d Mon Sep 17 00:00:00 2001 From: chajr Date: Thu, 3 Oct 2019 12:53:36 +0200 Subject: [PATCH] Fixed display New Contact List in magento integration 1 exception(s): Exception #0 (Exception): Warning: count(): Parameter must be an array or an object that implements Countable in .../vendor/getresponse/magento2/view/adminhtml/templates/create_list.phtml on line 62 --- src/TypedCollection.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/TypedCollection.php b/src/TypedCollection.php index 9871ae2..62a2987 100644 --- a/src/TypedCollection.php +++ b/src/TypedCollection.php @@ -4,12 +4,13 @@ use ArrayIterator; use InvalidArgumentException; use IteratorAggregate; +use Countable; /** * Class TypedCollection * @package GrShareCode */ -class TypedCollection implements IteratorAggregate +class TypedCollection implements IteratorAggregate, Countable { /** @var array */ private $items = [];