mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
fix(taskprocessing): input validation was dropping some optional inputs
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
This commit is contained in:
parent
7525eddb96
commit
7e1dd0b25e
1 changed files with 1 additions and 1 deletions
|
|
@ -489,7 +489,7 @@ class Manager implements IManager {
|
|||
* @psalm-template T
|
||||
*/
|
||||
private function removeSuperfluousArrayKeys(array $array, ...$specs): array {
|
||||
$keys = array_unique(array_reduce($specs, fn ($carry, $spec) => $carry + array_keys($spec), []));
|
||||
$keys = array_unique(array_reduce($specs, fn ($carry, $spec) => array_merge($carry, array_keys($spec)), []));
|
||||
$values = array_map(fn (string $key) => $array[$key], $keys);
|
||||
return array_combine($keys, $values);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue