Skip to content
Permalink
Browse files

Correct return type

  • Loading branch information...
ravage84 committed Sep 25, 2015
1 parent e690662 commit bd461910e9792d8bfb7604081f7c231e50e2b23d
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Cake/Event/CakeEventManager.php
@@ -172,10 +172,10 @@ public function detach($callable, $eventKey = null) {
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) {

0 comments on commit bd46191

Please sign in to comment.
You can’t perform that action at this time.