Closed
Description
Description
The following code:
<?php
set_exception_handler(function ($e): void {
var_dump(set_exception_handler('is_int'));
});
throw new \Exception;
Resulted in this output:
NULL
But I expected this output instead:
object(Closure)#1 (1) {
["parameter"]=>
array(1) {
["$e"]=>
string(10) "<required>"
}
}
PHP Version
8.3.0 and up
Operating System
No response