MDL-81031 core: Correct hinting for default exception handler

This commit is contained in:
Andrew Nicols
2024-08-06 16:01:08 +08:00
committed by Jun Pataleta
parent b3988ffa18
commit 90b2057620
+2 -2
View File
@@ -130,10 +130,10 @@ function get_whoops(): ?\Whoops\Run {
/**
* Default exception handler.
*
* @param Exception $ex
* @param Throwable $ex
* @return void -does not return. Terminates execution!
*/
function default_exception_handler($ex) {
function default_exception_handler(Throwable $ex): void {
global $CFG, $DB, $OUTPUT, $USER, $FULLME, $SESSION, $PAGE;
// detect active db transactions, rollback and log as error