Fix type of PreviewController::$userId

Can be null if not logged in; currently crashes

Signed-off-by: Varun Patil <varunpatil@ucla.edu>
This commit is contained in:
Varun Patil 2022-11-23 18:30:22 -08:00 committed by Côme Chilliet (Rebase PR Action)
parent af246d6bd1
commit 64a1bcec1d

View file

@ -40,7 +40,7 @@ use OCP\IPreview;
use OCP\IRequest;
class PreviewController extends Controller {
private string $userId;
private ?string $userId;
private IRootFolder $root;
private IPreview $preview;