fix(sharing): Fix the type handling to the public interface

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2024-02-09 13:13:54 +01:00
parent bd101e0cde
commit 4ef47f0297
No known key found for this signature in database
GPG key ID: C400AAF20C1BB6FC

View file

@ -1115,16 +1115,16 @@ class DefaultShareProvider implements IShareProvider {
}
/**
* @param Share[] $shares
* @param IShare[] $shares
* @param $userId
* @return Share[] The updates shares if no update is found for a share return the original
* @return IShare[] The updates shares if no update is found for a share return the original
*/
private function resolveGroupShares($shares, $userId) {
$result = [];
$start = 0;
while (true) {
/** @var Share[] $shareSlice */
/** @var IShare[] $shareSlice */
$shareSlice = array_slice($shares, $start, 100);
$start += 100;
@ -1134,7 +1134,7 @@ class DefaultShareProvider implements IShareProvider {
/** @var int[] $ids */
$ids = [];
/** @var Share[] $shareMap */
/** @var IShare[] $shareMap */
$shareMap = [];
foreach ($shareSlice as $share) {