Skip to content
This repository was archived by the owner on May 29, 2026. It is now read-only.

refactor: migrate deprecated IConfig app-values to IAppConfig#632

Merged
rubenvdlinde merged 1 commit into
developmentfrom
chore/iappconfig-migration
May 26, 2026
Merged

refactor: migrate deprecated IConfig app-values to IAppConfig#632
rubenvdlinde merged 1 commit into
developmentfrom
chore/iappconfig-migration

Conversation

@rubenvdlinde

Copy link
Copy Markdown
Contributor

Summary

  • Replaces 3 deprecated IConfig::getAppValue() calls in CaseEmailService with typed IAppConfig::getValueString() calls
  • Removes now-unused IConfig import and constructor parameter; injects IAppConfig instead
  • Behaviour-preserving: same keys, same defaults, same string type

Scope

File Changes
lib/Service/CaseEmailService.php getAppValuegetValueString, IConfigIAppConfig

User-value calls in PreferencesController are intentionally left on IConfig (min-version 28; IUserConfig requires NC≥31).

Test plan

  • php -l lib/Service/CaseEmailService.php — no syntax errors ✓
  • Gate-16 spec coverage — exit 0 ✓
  • PHPStan deferred to CI (no vendor present in clone)

Replace three getAppValue() calls in CaseEmailService with typed
getValueString() via OCP\IAppConfig, removing the now-unused IConfig
import. User-value calls in PreferencesController are left on IConfig
(min-version 28, IUserConfig needs NC≥31).
@rubenvdlinde rubenvdlinde merged commit 9323ffa into development May 26, 2026
@rubenvdlinde rubenvdlinde deleted the chore/iappconfig-migration branch May 26, 2026 21:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant