X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Finstaller%2FInstallerSessionProvider.php;h=568ef516ef093f9d22d2c48aba139545508947de;hb=50212e6d0ef2cdcc63aece18c8d77c9c251be7ed;hp=2b9f418590a782e1709eb297efe39b2e29bff637;hpb=b92b92acfcefcaf17ad82332e67209a7d02c0152;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/installer/InstallerSessionProvider.php b/includes/installer/InstallerSessionProvider.php index 2b9f418590..568ef516ef 100644 --- a/includes/installer/InstallerSessionProvider.php +++ b/includes/installer/InstallerSessionProvider.php @@ -30,16 +30,19 @@ use MediaWiki\Session\SessionInfo; class InstallerSessionProvider extends SessionProvider { /** * Pretend there is a session, to avoid MWCryptRand overhead + * @param WebRequest $request + * @return SessionInfo */ public function provideSessionInfo( WebRequest $request ) { - return new SessionInfo( 1, array( + return new SessionInfo( 1, [ 'provider' => $this, 'id' => str_repeat( 'x', 32 ), - ) ); + ] ); } /** * Yes we will treat your data with great care! + * @return bool */ public function persistsSessionId() { return true; @@ -47,6 +50,7 @@ class InstallerSessionProvider extends SessionProvider { /** * Sure, you can be whoever you want, as long as you have ID 0 + * @return bool */ public function canChangeUser() { return true;