X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fsession%2FSessionInfo.php;h=1b5a834c9460ddd8bb35cc1627e5683449946cc2;hb=207a47a1fe50f51e999e28e1796c083e46860a15;hp=9fe2cdf15cf236629eb9df5c6430e3c3cfb98042;hpb=77a8bbd406de8194432bbc92ce0b781ba44b43bc;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/session/SessionInfo.php b/includes/session/SessionInfo.php index 9fe2cdf15c..1b5a834c94 100644 --- a/includes/session/SessionInfo.php +++ b/includes/session/SessionInfo.php @@ -23,10 +23,6 @@ namespace MediaWiki\Session; -use Psr\Log\LoggerInterface; -use BagOStuff; -use WebRequest; - /** * Value object returned by SessionProvider * @@ -92,7 +88,7 @@ class SessionInfo { if ( !$from instanceof SessionInfo ) { throw new \InvalidArgumentException( 'Invalid copyFrom' ); } - $data += array( + $data += [ 'provider' => $from->provider, 'id' => $from->id, 'userInfo' => $from->userInfo, @@ -102,10 +98,10 @@ class SessionInfo { 'metadata' => $from->providerMetadata, 'idIsSafe' => $from->idIsSafe, // @codeCoverageIgnoreStart - ); + ]; // @codeCoverageIgnoreEnd } else { - $data += array( + $data += [ 'provider' => null, 'id' => null, 'userInfo' => null, @@ -115,7 +111,7 @@ class SessionInfo { 'metadata' => null, 'idIsSafe' => false, // @codeCoverageIgnoreStart - ); + ]; // @codeCoverageIgnoreEnd } @@ -207,9 +203,6 @@ class SessionInfo { /** * Return whether the session is persisted - * - * i.e. a session ID was given to the constuctor - * * @return bool */ final public function wasPersisted() {