Skip to content

Commit e7ab2c1

Browse files
Merge pull request #50485 from nextcloud/backport/49645/stable31
[stable31] fix(config): drop value details
2 parents 325e5ee + 578b4ba commit e7ab2c1

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

lib/private/AppConfig.php

+1
Original file line numberDiff line numberDiff line change
@@ -1093,6 +1093,7 @@ public function deleteKey(string $app, string $key): void {
10931093

10941094
unset($this->lazyCache[$app][$key]);
10951095
unset($this->fastCache[$app][$key]);
1096+
unset($this->valueTypes[$app][$key]);
10961097
}
10971098

10981099
/**

lib/private/Config/UserConfig.php

+1-4
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,6 @@ class UserConfig implements IUserConfig {
5858
private array $lazyCache = []; // cache for lazy config keys
5959
/** @var array<string, array<string, array<string, array<string, mixed>>>> ['user_id' => ['app_id' => ['key' => ['type' => ValueType, 'flags' => bitflag]]]] */
6060
private array $valueDetails = []; // type for all config values
61-
/** @var array<string, array<string, array<string, ValueType>>> ['user_id' => ['app_id' => ['key' => bitflag]]] */
62-
private array $valueTypes = []; // type for all config values
63-
/** @var array<string, array<string, array<string, int>>> ['user_id' => ['app_id' => ['key' => bitflag]]] */
64-
private array $valueFlags = []; // type for all config values
6561
/** @var array<string, boolean> ['user_id' => bool] */
6662
private array $fastLoaded = [];
6763
/** @var array<string, boolean> ['user_id' => bool] */
@@ -1511,6 +1507,7 @@ public function deleteUserConfig(string $userId, string $app, string $key): void
15111507

15121508
unset($this->lazyCache[$userId][$app][$key]);
15131509
unset($this->fastCache[$userId][$app][$key]);
1510+
unset($this->valueDetails[$userId][$app][$key]);
15141511
}
15151512

15161513
/**

0 commit comments

Comments
 (0)