public function errorHandler(
        int $errSeverity,
        string $errMsg,
        string $errFile,
        int $errLine
    ) {
        $errType     = $this->obtainErrorType($errSeverity);
        $errorRender = $this->obtainErrorRender();
        
        \BFW\Application::getInstance()
            ->getMonolog()
            ->getLogger()
            ->debug(
                'New error catched.',
                [
                    'type' => $errType,
                    'msg'  => $errMsg,
                    'file' => $errFile,
                    'line' => $errLine
                ]
            );
        
        //Call the "callRender" method for this class (or child class)
        $this->callRender(
            $errorRender,
            $errType,
            $errMsg,
            $errFile,
            $errLine,
            debug_backtrace()
        );
    }
public function errorHandler(
        int $errSeverity,
        string $errMsg,
        string $errFile,
        int $errLine
    ) {
        $errType     = $this->obtainErrorType($errSeverity);
        $errorRender = $this->obtainErrorRender();
        
        \BFW\Application::getInstance()
            ->getMonolog()
            ->getLogger()
            ->debug(
                'New error catched.',
                [
                    'type' => $errType,
                    'msg'  => $errMsg,
                    'file' => $errFile,
                    'line' => $errLine
                ]
            );
        
        //Call the "callRender" method for this class (or child class)
        $this->callRender(
            $errorRender,
            $errType,
            $errMsg,
            $errFile,
            $errLine,
            debug_backtrace()
        );
    }
public function errorHandler ( int $ errSeverity , string $ errMsg , string $ errFile , int $ errLine ) { $ errType = $ this -> obtainErrorType ( $ errSeverity ) ; $ errorRender = $ this -> obtainErrorRender ( ) ; \ BFW \ Application :: getInstance ( ) -> getMonolog ( ) -> getLogger ( ) -> debug ( 'New error catched.' , [ 'type' => $ errType , 'msg' => $ errMsg , 'file' => $ errFile , 'line' => $ errLine ] ) ; //Call the "callRender" method for this class (or child class) $ this -> callRender ( $ errorRender , $ errType , $ errMsg , $ errFile , $ errLine , debug_backtrace ( ) ) ; }
The default error handler included in BFW

@param integer $errSeverity : Error severity
@param string  $errMsg : Error message
@param string  $errFile : File where the error is triggered
@param integer $errLine : Line where the error is triggered

@return void
The default error handler included in BFW