Correct return type

Refs https://github.com/cakephp/cakephp/pull/7447#discussion_r40444444
This commit is contained in:
Marc Würth 2015-09-25 18:02:44 +02:00
parent e690662f0e
commit bd461910e9

View file

@ -172,10 +172,10 @@ class CakeEventManager {
foreach (array_keys($this->_listeners) as $eventKey) {
$this->detach($callable, $eventKey);
}
return null;
return;
}
if (empty($this->_listeners[$eventKey])) {
return null;
return;
}
foreach ($this->_listeners[$eventKey] as $priority => $callables) {
foreach ($callables as $k => $callback) {