Skip to content

Commit 784daa4

Browse files
authored
Merge pull request #1982 from nextcloud/backport/1960/stable0.8
[stable0.8] fix: allow null userId
2 parents b2849c5 + b1263a5 commit 784daa4

1 file changed

Lines changed: 4 additions & 14 deletions

File tree

‎lib/Controller/RowController.php‎

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,15 @@
1717
use Psr\Log\LoggerInterface;
1818

1919
class RowController extends Controller {
20-
/** @var RowService */
21-
private RowService $service;
22-
23-
/** @var string */
24-
private string $userId;
25-
26-
protected LoggerInterface $logger;
27-
2820
use Errors;
2921

3022
public function __construct(
3123
IRequest $request,
32-
LoggerInterface $logger,
33-
RowService $service,
34-
string $userId) {
24+
protected LoggerInterface $logger,
25+
private RowService $service,
26+
private ?string $userId,
27+
) {
3528
parent::__construct(Application::APP_ID, $request);
36-
$this->logger = $logger;
37-
$this->service = $service;
38-
$this->userId = $userId;
3929
}
4030

4131
#[NoAdminRequired]

0 commit comments

Comments
 (0)