public static function handleErrors($errno, $errstr = '', $errfile = '', $errline = '')
    {
        if (error_reporting() & $errno) {
            throw new \ErrorException($errstr, $errno, 0, $errfile, $errline);
        }

        return true;
    }
public static function handleErrors($errno, $errstr = '', $errfile = '', $errline = '')
    {
        if (error_reporting() & $errno) {
            throw new \ErrorException($errstr, $errno, 0, $errfile, $errline);
        }

        return true;
    }
public static function handleErrors ( $ errno , $ errstr = '' , $ errfile = '' , $ errline = '' ) { if ( error_reporting ( ) & $ errno ) { throw new \ ErrorException ( $ errstr , $ errno , 0 , $ errfile , $ errline ) ; } return true ; }
Convert errors into ErrorException objects

This method catches PHP errors and converts them into \ErrorException objects;
these \ErrorException objects are then thrown and caught by Slim's
built-in or custom error handlers.

@param  int            $errno   The numeric type of the Error
@param  string         $errstr  The error message
@param  string         $errfile The absolute path to the affected file
@param  int            $errline The line number of the error in the affected file
@return true
@throws \ErrorException
Convert errors into ErrorException objects