src/class/Error.php
public static function shouldBeReported($errcode, $reportingSettings = null) {
            if (!$reportingSettings || !is_numeric($reportingSettings)) {
                $reportingSettings = (int)((new ErrorConfig())->get(ErrorConfig::CFG_ERROR_LEVEL));
            }

            $reportingSettings = (int)$reportingSettings;

            return $errcode && $reportingSettings & ((int)$errcode) ? true : false;
        }
public static function shouldBeReported($errcode, $reportingSettings = null) {
            if (!$reportingSettings || !is_numeric($reportingSettings)) {
                $reportingSettings = (int)((new ErrorConfig())->get(ErrorConfig::CFG_ERROR_LEVEL));
            }

            $reportingSettings = (int)$reportingSettings;

            return $errcode && $reportingSettings & ((int)$errcode) ? true : false;
        }
public static function shouldBeReported ( $ errcode , $ reportingSettings = null ) { if ( ! $ reportingSettings || ! is_numeric ( $ reportingSettings ) ) { $ reportingSettings = ( int ) ( ( new ErrorConfig ( ) ) -> get ( ErrorConfig :: CFG_ERROR_LEVEL ) ) ; } $ reportingSettings = ( int ) $ reportingSettings ; return $ errcode && $ reportingSettings & ( ( int ) $ errcode ) ? true : false ; }
Checks if an error should be reported

@author Art <a.molcanovas@gmail.com>

@param int $errcode           The error code
@param int $reportingSettings You can provide your own reporting settings. If omitted,
ALO_HANDLERS_ERROR_LEVEL will be used.

@return bool
@since  1.3
Checks if an error should be reported