Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1441 ariadna 1
<?php
2
 
3
namespace PhpOffice\PhpSpreadsheet\Calculation;
4
 
5
class ExceptionHandler
6
{
7
    /**
8
     * Register errorhandler.
9
     */
10
    public function __construct()
11
    {
12
        /** @var callable $callable */
13
        $callable = [Exception::class, 'errorHandlerCallback'];
14
        set_error_handler($callable, E_ALL);
15
    }
16
 
17
    /**
18
     * Unregister errorhandler.
19
     */
20
    public function __destruct()
21
    {
22
        restore_error_handler();
23
    }
24
}