Indicate uid can be null in PageController

pull/37/head
Varun Patil 2022-09-11 02:38:40 -07:00
parent aeee6592b0
commit b8e5ee7f1b
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ use OCP\IUserSession;
use OCP\Util; use OCP\Util;
class PageController extends Controller { class PageController extends Controller {
protected string $userId; protected string | null $userId;
protected $appName; protected $appName;
protected IEventDispatcher $eventDispatcher; protected IEventDispatcher $eventDispatcher;
private IInitialState $initialState; private IInitialState $initialState;
@ -23,7 +23,7 @@ class PageController extends Controller {
public function __construct( public function __construct(
string $AppName, string $AppName,
IRequest $request, IRequest $request,
string $UserId, string | null $UserId,
IEventDispatcher $eventDispatcher, IEventDispatcher $eventDispatcher,
IInitialState $initialState, IInitialState $initialState,
IUserSession $userSession, IUserSession $userSession,