diff --git a/composer.json b/composer.json index 79442cb..757bcb2 100644 --- a/composer.json +++ b/composer.json @@ -18,10 +18,10 @@ } ], "require": { - "illuminate/support": "^5.7|^6.0|^7.0" + "illuminate/support": "^5.7|^6.0|^7.0|^8.0" }, "require-dev": { - "orchestra/testbench": "^5.0" + "orchestra/testbench": "^6.0" }, "autoload": { "psr-4": { diff --git a/src/EventDispatcherDecorator.php b/src/EventDispatcherDecorator.php index c11c4c3..34e7b7a 100644 --- a/src/EventDispatcherDecorator.php +++ b/src/EventDispatcherDecorator.php @@ -18,7 +18,7 @@ public function __construct(DispatcherContract $dispatcher, ContainerContract $c $this->container = $container; } - public function listen($events, $listener) + public function listen($events, $listener = null) { if ($this->isActionFullyQualifiedName($listener)) { $listener = $listener . '@runAsListener';