0 && !isset(self::$warned[$warningId])) { self::$warned[$warningId] = true; trigger_error($errorMessage, $messageLevel ?: E_USER_WARNING); } } static function warn($errorMessage, $warningId, $messageLevel = null) { if (self::$warningHandler) { $fn = self::$warningHandler; $fn($errorMessage, $warningId); } else if ((self::$enableWarnings & $warningId) > 0) { trigger_error($errorMessage, $messageLevel ?: E_USER_WARNING); } } }