src/Exception/ErrorMiddleware.php
/**
	 * Checks if the error can be reported.
	 *
	 * @param HorizonError $error
	 * @return bool
	 */
Checks if the error can be reported.
@param HorizonError $error
@return bool
Checks if the error can be reported . @param HorizonError $error @return bool
public static function canReport(HorizonError $error) {
		if (error_reporting() === 0 && config('errors.silent_reporting', false)) {
			if ($error->getLevel() < 5) {
				return false;
			}
		}
		if ($error->getLevel() < config('errors.report_sensitivity', 4)) {
			return false;
		}
		return true;
	}
public static function canReport ( HorizonError $ error ) { if ( error_reporting ( ) === 0 && config ( 'errors.silent_reporting' , false ) ) { if ( $ error -> getLevel ( ) < 5 ) { return false ; } } if ( $ error -> getLevel ( ) < config ( 'errors.report_sensitivity' , 4 ) ) { return false ; } return true ; }
Checks if the error can be reported.
Checks if the error can be reported .
// Handle silence operator (@) // Only report errors that are above or equal to the configured severity // Report the error