diff --git a/src/event/HandlerListManager.php b/src/event/HandlerListManager.php index 3bed7631c..0859b1e5e 100644 --- a/src/event/HandlerListManager.php +++ b/src/event/HandlerListManager.php @@ -42,10 +42,10 @@ class HandlerListManager{ * Unregisters all the listeners * If a Plugin or Listener is passed, all the listeners with that object will be removed * - * @param Plugin|Listener|null $object + * @param Plugin|Listener|RegisteredListener|null $object */ public function unregisterAll($object = null) : void{ - if($object instanceof Listener or $object instanceof Plugin){ + if($object instanceof Listener or $object instanceof Plugin or $object instanceof RegisteredListener){ foreach($this->allLists as $h){ $h->unregister($object); }