Files
accounting_dev/application/third_party/PhpSpreadsheet-5.3.0/src/PhpSpreadsheet/Calculation/ExceptionHandler.php
T
2026-05-26 08:07:45 +00:00

25 lines
450 B
PHP

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