Skip to content

Commit 5fdcf43

Browse files
committed
fix: the match syntax was incorrect
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 4833fbb commit 5fdcf43

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/Controller/IdentifyAccountController.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,9 @@ private function replaceShareTypeByMethod(array $list): array {
232232
continue;
233233
}
234234
$list[$key]['method'] = match ($item['shareType']) {
235-
IShare::TYPE_EMAIL => $item['method'] = 'email',
236-
IShare::TYPE_USER => $item['method'] = 'account',
237-
default => $item['method'] = '',
235+
IShare::TYPE_EMAIL => 'email',
236+
IShare::TYPE_USER => 'account',
237+
default => '',
238238
};
239239
unset($list[$key]['shareType']);
240240
}

0 commit comments

Comments
 (0)