1 | <?php |
||
20 | class ErrorHandler |
||
21 | { |
||
22 | /** |
||
23 | * Error handler |
||
24 | * |
||
25 | * @param int $level Level of the error raised |
||
26 | * @param string $message Error message |
||
27 | * @param string $file Filename that the error was raised in |
||
28 | * @param int $line Line number the error was raised at |
||
29 | * |
||
30 | * @static |
||
31 | * @throws \ErrorException |
||
32 | */ |
||
33 | public static function handle($level, $message, $file, $line) |
||
47 | |||
48 | /** |
||
49 | * Register error handler |
||
50 | * |
||
51 | * @static |
||
52 | */ |
||
53 | public static function register() |
||
57 | } |
||
58 |