mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-25 16:27:20 +00:00
Fix: revert return
This commit is contained in:
parent
0f00d73c70
commit
e1e5a292f2
2 changed files with 3 additions and 5 deletions
|
@ -166,8 +166,7 @@ class CakeEventManager {
|
||||||
*/
|
*/
|
||||||
public function detach($callable, $eventKey = null) {
|
public function detach($callable, $eventKey = null) {
|
||||||
if ($callable instanceof CakeEventListener) {
|
if ($callable instanceof CakeEventListener) {
|
||||||
$this->_detachSubscriber($callable, $eventKey);
|
return $this->_detachSubscriber($callable, $eventKey);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
if (empty($eventKey)) {
|
if (empty($eventKey)) {
|
||||||
foreach (array_keys($this->_listeners) as $eventKey) {
|
foreach (array_keys($this->_listeners) as $eventKey) {
|
||||||
|
|
|
@ -581,11 +581,10 @@ class File {
|
||||||
*/
|
*/
|
||||||
public function clearStatCache($all = false) {
|
public function clearStatCache($all = false) {
|
||||||
if ($all === false && version_compare(PHP_VERSION, '5.3.0') >= 0) {
|
if ($all === false && version_compare(PHP_VERSION, '5.3.0') >= 0) {
|
||||||
clearstatcache(true, $this->path);
|
return clearstatcache(true, $this->path);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
clearstatcache();
|
return clearstatcache();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue