Skip to content

Commit 2a659f9

Browse files
committed
Better iterator type
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
1 parent 9d47e9c commit 2a659f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Command/ListShares.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ private function getShareTypes(): array {
102102
];
103103
}
104104

105-
private function do(string $userId, int $filter, string $path = null) {
105+
private function do(string $userId, int $filter, string $path = null): \Iterator {
106106
$shares = $this->getShares($userId);
107107

108108
// If path is set. Filter for the current user
@@ -150,7 +150,7 @@ private function do(string $userId, int $filter, string $path = null) {
150150
}
151151

152152

153-
private function getShares(string $userId): iterable {
153+
private function getShares(string $userId): \Iterator {
154154
$shareTypes = $this->getShareTypes();
155155

156156
foreach ($shareTypes as $shareType) {

0 commit comments

Comments
 (0)