From 48850d6fe04fb222c9f5895d06f535a5dedbc76a Mon Sep 17 00:00:00 2001 From: Yohan Giarelli Date: Mon, 13 Feb 2023 20:48:43 +0100 Subject: [PATCH] Made event manager compatible with iterable non-array providers --- src/Event/Manager.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Event/Manager.php b/src/Event/Manager.php index 7bc33cc..14337c9 100644 --- a/src/Event/Manager.php +++ b/src/Event/Manager.php @@ -36,10 +36,10 @@ class Manager protected $collectionInstantiator; /** - * @param array $providers - * @param null $instantiator + * @param iterable $providers + * @param ?callable $instantiator */ - public function __construct(array $providers = [], $instantiator = null) + public function __construct(iterable $providers = [], ?callable $instantiator = null) { $this->collectionInstantiator = $instantiator; if (null === $instantiator) {