Skip to content

Commit

Permalink
Fix getAllShares
Browse files Browse the repository at this point in the history
Signed-off-by: Florent Poinsaut <[email protected]>
  • Loading branch information
FlorentPoinsaut committed Oct 12, 2022
1 parent f776998 commit cc0cf1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Service/SharesList.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ public function getSub(string $userId, int $filter, string $path): \Iterator {
return $shares;
}

public function getFormattedShares(string $userId = '', int $filter = self::FILTER_NONE, string $path = null, string $token = null): \Iterator {
public function getFormattedShares(?string $userId = '', int $filter = self::FILTER_NONE, string $path = null, string $token = null): \Iterator {
$shares = $this->get($userId, $filter, $path, $token);

$formattedShares = iter\map(function (IShare $share): array {
Expand Down

0 comments on commit cc0cf1b

Please sign in to comment.