melder/vendor/PhpSpreadsheet/Calculation/ExceptionHandler.php
2024-02-16 15:35:01 +01:00

23 lines
380 B
PHP

<?php
namespace PhpOffice\PhpSpreadsheet\Calculation;
class ExceptionHandler
{
/**
* Register errorhandler.
*/
public function __construct()
{
set_error_handler([Exception::class, 'errorHandlerCallback'], E_ALL);
}
/**
* Unregister errorhandler.
*/
public function __destruct()
{
restore_error_handler();
}
}