1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-10-12 15:34:31 +02:00

Merge branch 'master' into ticket/17541

This commit is contained in:
Matt Friedman
2025-09-23 10:40:43 -07:00

View File

@@ -25,10 +25,11 @@ class phpbb_mock_event_dispatcher extends \phpbb\event\dispatcher
public function trigger_event($eventName, $data = array()): array public function trigger_event($eventName, $data = array()): array
{ {
$data = (array) $data; $data = (array) $data;
// Throw an exception if we reach the core's exit_handler()
if ($eventName === 'core.exit_handler') if ($eventName === 'core.exit_handler')
{ {
$data['exit_handler_override'] = true; throw new \RuntimeException('Exit handler called');
} }
return $data; return $data;