* 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) {
private $callback = NULL;
/**
- * @param array $callback
+ * @param array|callable $callback
* Ex: ['SomeClass', 'someMethod']
*/
public function __construct($callback) {