mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-09 13:02:40 +00:00
Fix: Stray [] syntax in php 5.3 codebase
This commit is contained in:
parent
e71d650ade
commit
aa0f1c1862
1 changed files with 2 additions and 2 deletions
|
@ -501,7 +501,7 @@ class CakeEventManagerTest extends CakeTestCase {
|
|||
}
|
||||
|
||||
/**
|
||||
* Test that events are dispatched properly when there are global and local
|
||||
* Test that events are dispatched properly when there are global and local
|
||||
* listeners at the same priority.
|
||||
*
|
||||
* @return void
|
||||
|
@ -511,7 +511,7 @@ class CakeEventManagerTest extends CakeTestCase {
|
|||
CakeEventManager::instance()->attach($listener);
|
||||
$listener2 = new CakeEventTestListener();
|
||||
$manager = new CakeEventManager();
|
||||
$manager->attach([$listener2, 'listenerFunction'], 'fake.event');
|
||||
$manager->attach(array($listener2, 'listenerFunction'), 'fake.event');
|
||||
|
||||
$manager->dispatch(new CakeEvent('fake.event', $this));
|
||||
$this->assertEquals(array('listenerFunction'), $listener->callStack);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue