From b3f52ebbe866acb69bfd7362eb768bbee552bda6 Mon Sep 17 00:00:00 2001 From: Maxence Lange Date: Mon, 5 May 2025 10:16:53 -0100 Subject: feat(appconfig): getValueType() get data from lexicon if available Signed-off-by: Maxence Lange --- lib/private/AppConfig.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/private/AppConfig.php b/lib/private/AppConfig.php index 092d37c3338..a8a6f689ffa 100644 --- a/lib/private/AppConfig.php +++ b/lib/private/AppConfig.php @@ -488,6 +488,14 @@ class AppConfig implements IAppConfig { * @see VALUE_ARRAY */ public function getValueType(string $app, string $key, ?bool $lazy = null): int { + $type = self::VALUE_MIXED; + $ignorable = $lazy ?? false; + $this->matchAndApplyLexiconDefinition($app, $key, $ignorable, $type); + if ($type !== self::VALUE_MIXED) { + // a modified $type means config key is set in Lexicon + return $type; + } + $this->assertParams($app, $key); $this->loadConfig($app, $lazy); -- cgit v1.2.3