Skip to content

Commit

Permalink
Made event manager compatible with iterable non-array providers
Browse files Browse the repository at this point in the history
  • Loading branch information
Yohan Giarelli committed Feb 13, 2023
1 parent 8087bf6 commit 48850d6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Event/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ class Manager
protected $collectionInstantiator;

/**
* @param array $providers
* @param null $instantiator
* @param iterable<ProviderInterface> $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) {
Expand Down

0 comments on commit 48850d6

Please sign in to comment.