diff --git a/Civi/Core/CiviEventDispatcher.php b/Civi/Core/CiviEventDispatcher.php index 8d7240fe0ffd..d8db0119bc63 100644 --- a/Civi/Core/CiviEventDispatcher.php +++ b/Civi/Core/CiviEventDispatcher.php @@ -98,7 +98,7 @@ public function addSubscriberServiceMap(string $subscriber, array $events) { * Ex: 'hook_civicrm_publicEvent' * Ex: '&hook_civicrm_publicEvent' (an alias for 'hook_civicrm_publicEvent' in which the listener abides hook-style ordered parameters). * This notation is handy when attaching via listener-maps (e.g. `getSubscribedEvents()`). - * @param callable $listener + * @param callable|HookStyleListener $listener * @param int $priority */ public function addListener($eventName, $listener, $priority = 0) { diff --git a/Civi/Core/Event/HookStyleListener.php b/Civi/Core/Event/HookStyleListener.php index 28a3ee85a8d6..ed19e70e011a 100644 --- a/Civi/Core/Event/HookStyleListener.php +++ b/Civi/Core/Event/HookStyleListener.php @@ -22,7 +22,7 @@ class HookStyleListener { private $callback = NULL; /** - * @param array $callback + * @param array|callable $callback * Ex: ['SomeClass', 'someMethod'] */ public function __construct($callback) {