mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-02 09:32:43 +00:00
Update CakeEventManager.php
Cast resultados de implementedEvents a una matriz.
e6f2c92005
This commit is contained in:
parent
e6f2c92005
commit
6ee5277c9f
1 changed files with 1 additions and 1 deletions
|
@ -197,7 +197,7 @@ class CakeEventManager {
|
|||
* @return void
|
||||
*/
|
||||
protected function _detachSubscriber(CakeEventListener $subscriber, $eventKey = null) {
|
||||
$events = $subscriber->implementedEvents();
|
||||
$events = (array)$subscriber->implementedEvents();
|
||||
if (!empty($eventKey) && empty($events[$eventKey])) {
|
||||
return;
|
||||
} elseif (!empty($eventKey)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue