From 112178d3a0da7d9bc6698881b5ccd61f48d6c0f0 Mon Sep 17 00:00:00 2001 From: Ferdinand Thiessen Date: Mon, 18 Aug 2025 18:35:54 +0200 Subject: [PATCH] fix: typos in cache and app config Signed-off-by: Ferdinand Thiessen --- config/config.sample.php | 2 +- lib/private/AppConfig.php | 2 +- lib/private/Memcache/Factory.php | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/config/config.sample.php b/config/config.sample.php index ea8766b970b..be6e9343ed7 100644 --- a/config/config.sample.php +++ b/config/config.sample.php @@ -1795,7 +1795,7 @@ $CONFIG = [ /** * Enable caching of the app config values. * If enabled the app config will be cached locally for a short TTL, - * reducing database load significatly on larger setups. + * reducing database load significantly on larger setups. * * Defaults to ``true`` */ diff --git a/lib/private/AppConfig.php b/lib/private/AppConfig.php index 2fbc7fe3812..f803e7fd016 100644 --- a/lib/private/AppConfig.php +++ b/lib/private/AppConfig.php @@ -864,7 +864,7 @@ class AppConfig implements IAppConfig { && ($type | self::VALUE_SENSITIVE) !== ($currType | self::VALUE_SENSITIVE)) { try { $currType = $this->convertTypeToString($currType); - $this->convertTypeToString($type); + $type = $this->convertTypeToString($type); } catch (AppConfigIncorrectTypeException) { // can be ignored, this was just needed for a better exception message. } diff --git a/lib/private/Memcache/Factory.php b/lib/private/Memcache/Factory.php index 2a3fabc89f1..0ed6a440a5d 100644 --- a/lib/private/Memcache/Factory.php +++ b/lib/private/Memcache/Factory.php @@ -128,7 +128,6 @@ class Factory implements ICacheFactory { * Override the global prefix for a specific closure. * This should only be used internally for bootstrapping purpose! * - * @param string $globalPrefix - The prefix to use during the closure execution * @param \Closure $closure - The closure with the cache factory as the first parameter */ public function withServerVersionPrefix(\Closure $closure): void {