mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
Correct return type
Refs https://github.com/cakephp/cakephp/pull/7447#discussion_r40444444
This commit is contained in:
parent
e690662f0e
commit
bd461910e9
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue