Skip to content

Commit 9607121

Browse files
authored
Merge pull request #1064 from yukogan-gh/patch-1
Cast key to string when retrieving value type
2 parents cdf5b9f + 11b8e86 commit 9607121

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Service/UserMigrationService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ protected function importAppsSettings(IUser $user,
330330
foreach ($data as $app => $values) {
331331
foreach ($values as $key => $value) {
332332
try {
333-
$type = $userConfig->getValueType($userId, $app, $key);
333+
$type = $userConfig->getValueType($userId, $app, (string)$key);
334334
} catch (UnknownKeyException) {
335335
/** If type is unknown, default to mixed */
336336
/** @psalm-suppress UndefinedClass ValueType only exists in 32 and higher, but in this if branch we know it exists */

0 commit comments

Comments
 (0)