From b957faa39c207456d2857599a40e70b77495df3d Mon Sep 17 00:00:00 2001 From: Val Bancer Date: Tue, 21 Apr 2020 11:32:16 +0200 Subject: [PATCH] Fix invalid data type --- lib/Cake/Event/CakeEventManager.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Cake/Event/CakeEventManager.php b/lib/Cake/Event/CakeEventManager.php index 98d73974b..020304ccc 100644 --- a/lib/Cake/Event/CakeEventManager.php +++ b/lib/Cake/Event/CakeEventManager.php @@ -81,7 +81,7 @@ class CakeEventManager { /** * Adds a new listener to an event. Listeners * - * @param callback|CakeEventListener $callable PHP valid callback type or instance of CakeEventListener to be called + * @param callable|CakeEventListener $callable PHP valid callback type or instance of CakeEventListener to be called * when the event named with $eventKey is triggered. If a CakeEventListener instance is passed, then the `implementedEvents` * method will be called on the object to register the declared events individually as methods to be managed by this class. * It is possible to define multiple event handlers per event name. @@ -146,7 +146,7 @@ class CakeEventManager { * * @param array $function the array taken from a handler definition for an event * @param CakeEventListener $object The handler object - * @return callback + * @return callable */ protected function _extractCallable($function, $object) { $method = $function['callable']; @@ -161,7 +161,7 @@ class CakeEventManager { /** * Removes a listener from the active listeners. * - * @param callback|CakeEventListener $callable any valid PHP callback type or an instance of CakeEventListener + * @param callable|CakeEventListener $callable any valid PHP callback type or an instance of CakeEventListener * @param string $eventKey The event unique identifier name with which the callback has been associated * @return void */