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;
        }