X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fsession%2FSessionInfo.php;h=1b5a834c9460ddd8bb35cc1627e5683449946cc2;hb=2a1fcd27c19913394c179cbe8be1a9e981d7f81b;hp=ff40aa5a5d2b8d66b206acde3e52989d41752917;hpb=554ca56fd5e76b0216c09543d447dbecd5773202;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/session/SessionInfo.php b/includes/session/SessionInfo.php index ff40aa5a5d..1b5a834c94 100644 --- a/includes/session/SessionInfo.php +++ b/includes/session/SessionInfo.php @@ -88,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, @@ -98,10 +98,10 @@ class SessionInfo { 'metadata' => $from->providerMetadata, 'idIsSafe' => $from->idIsSafe, // @codeCoverageIgnoreStart - ); + ]; // @codeCoverageIgnoreEnd } else { - $data += array( + $data += [ 'provider' => null, 'id' => null, 'userInfo' => null, @@ -111,7 +111,7 @@ class SessionInfo { 'metadata' => null, 'idIsSafe' => false, // @codeCoverageIgnoreStart - ); + ]; // @codeCoverageIgnoreEnd } @@ -203,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() {