protected static function initStrictExceptionsMode ($strictExceptionsMode) {
		$errorLevelsToExceptions = [];
		if ($strictExceptionsMode !== FALSE) {
			$sysCfgDebug = static::getSystemCfgDebugSection();
			if (isset($sysCfgDebug['strictExceptions'])) {
				$rawStrictExceptions = $sysCfgDebug['strictExceptions'];
				$rawStrictExceptions = is_array($rawStrictExceptions)
					? $rawStrictExceptions
					: explode(',', trim($rawStrictExceptions, '[]'));
				$errorLevelsToExceptions = array_map(
					function ($rawErrorLevel) {
						$rawErrorLevel = trim($rawErrorLevel);
						if (is_numeric($rawErrorLevel)) return intval($rawErrorLevel);
						return constant($rawErrorLevel);
					}, $rawStrictExceptions
				);
			} else {
				$errorLevelsToExceptions = self::$strictExceptionsModeDefaultLevels;
			}
		}
		return self::SetStrictExceptionsMode($strictExceptionsMode, $errorLevelsToExceptions);
	}
protected static function initStrictExceptionsMode ($strictExceptionsMode) {
		$errorLevelsToExceptions = [];
		if ($strictExceptionsMode !== FALSE) {
			$sysCfgDebug = static::getSystemCfgDebugSection();
			if (isset($sysCfgDebug['strictExceptions'])) {
				$rawStrictExceptions = $sysCfgDebug['strictExceptions'];
				$rawStrictExceptions = is_array($rawStrictExceptions)
					? $rawStrictExceptions
					: explode(',', trim($rawStrictExceptions, '[]'));
				$errorLevelsToExceptions = array_map(
					function ($rawErrorLevel) {
						$rawErrorLevel = trim($rawErrorLevel);
						if (is_numeric($rawErrorLevel)) return intval($rawErrorLevel);
						return constant($rawErrorLevel);
					}, $rawStrictExceptions
				);
			} else {
				$errorLevelsToExceptions = self::$strictExceptionsModeDefaultLevels;
			}
		}
		return self::SetStrictExceptionsMode($strictExceptionsMode, $errorLevelsToExceptions);
	}
protected static function initStrictExceptionsMode ( $ strictExceptionsMode ) { $ errorLevelsToExceptions = [ ] ; if ( $ strictExceptionsMode !== FALSE ) { $ sysCfgDebug = static :: getSystemCfgDebugSection ( ) ; if ( isset ( $ sysCfgDebug [ 'strictExceptions' ] ) ) { $ rawStrictExceptions = $ sysCfgDebug [ 'strictExceptions' ] ; $ rawStrictExceptions = is_array ( $ rawStrictExceptions ) ? $ rawStrictExceptions : explode ( ',' , trim ( $ rawStrictExceptions , '[]' ) ) ; $ errorLevelsToExceptions = array_map ( function ( $ rawErrorLevel ) { $ rawErrorLevel = trim ( $ rawErrorLevel ) ; if ( is_numeric ( $ rawErrorLevel ) ) return intval ( $ rawErrorLevel ) ; return constant ( $ rawErrorLevel ) ; } , $ rawStrictExceptions ) ; } else { $ errorLevelsToExceptions = self :: $ strictExceptionsModeDefaultLevels ; } } return self :: SetStrictExceptionsMode ( $ strictExceptionsMode , $ errorLevelsToExceptions ) ; }
Initialize strict exceptions mode in default levels or in customized
levels from system config.
@param bool|NULL $strictExceptionsMode
@return bool|NULL
Initialize strict exceptions mode in default levels or in customized levels from system config .