mirror of
https://github.com/phpbb/phpbb.git
synced 2025-10-05 04:01:49 +02:00
Merge pull request #6848 from iMattPro/ticket/17542
[ticket/17542] Mock event dispatcher override early exits
This commit is contained in:
@@ -22,8 +22,15 @@ class phpbb_mock_event_dispatcher extends \phpbb\event\dispatcher
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public function trigger_event($eventName, $data = array())
|
public function trigger_event($eventName, $data = array()): array
|
||||||
{
|
{
|
||||||
return array();
|
$data = (array) $data;
|
||||||
|
|
||||||
|
if ($eventName === 'core.exit_handler')
|
||||||
|
{
|
||||||
|
$data['exit_handler_override'] = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $data;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user