Skip to content

Commit

Permalink
Fix: revert return
Browse files Browse the repository at this point in the history
  • Loading branch information
lustyrain committed Oct 4, 2017
1 parent 0f00d73 commit e1e5a29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions lib/Cake/Event/CakeEventManager.php
Expand Up @@ -166,8 +166,7 @@ protected function _extractCallable($function, $object) {
*/
public function detach($callable, $eventKey = null) {
if ($callable instanceof CakeEventListener) {
$this->_detachSubscriber($callable, $eventKey);
return;
return $this->_detachSubscriber($callable, $eventKey);
}
if (empty($eventKey)) {
foreach (array_keys($this->_listeners) as $eventKey) {
Expand Down
5 changes: 2 additions & 3 deletions lib/Cake/Utility/File.php
Expand Up @@ -581,11 +581,10 @@ public function mime() {
*/
public function clearStatCache($all = false) {
if ($all === false && version_compare(PHP_VERSION, '5.3.0') >= 0) {
clearstatcache(true, $this->path);
return;
return clearstatcache(true, $this->path);
}

clearstatcache();
return clearstatcache();
}

/**
Expand Down

0 comments on commit e1e5a29

Please sign in to comment.