register_shutdown_function

Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Register a function for execution on shutdown
register_shutdown_function(callable $callbackmixed ...$args): ?bool
        set_exception_handler($this->forwardsTo('handleException'));



        
register_shutdown_function($this->forwardsTo('handleShutdown'));



        if (! 
$app->environment('testing')) {

            
ini_set('display_errors''Off');