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