src/Logger.php
protected function registerErrorHandler()
    {
        $instance = $this;
        $this->previousErrorHandler = set_error_handler(
            function ($errno, $errstr, $errfile, $errline) use ($instance) {
                $message = sprintf('%d: %s - File: %s - Line: %d', $errno, $errstr, $errfile, $errline);
                throw new \Exception($message, $errno);
            }
        );
    }
protected function registerErrorHandler()
    {
        $instance = $this;
        $this->previousErrorHandler = set_error_handler(
            function ($errno, $errstr, $errfile, $errline) use ($instance) {
                $message = sprintf('%d: %s - File: %s - Line: %d', $errno, $errstr, $errfile, $errline);
                throw new \Exception($message, $errno);
            }
        );
    }
protected function registerErrorHandler ( ) { $ instance = $ this ; $ this -> previousErrorHandler = set_error_handler ( function ( $ errno , $ errstr , $ errfile , $ errline ) use ( $ instance ) { $ message = sprintf ( '%d: %s - File: %s - Line: %d' , $ errno , $ errstr , $ errfile , $ errline ) ; throw new \ Exception ( $ message , $ errno ) ; } ) ; }
Add a error handler
Add a error handler