X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fsession%2FSessionInfo.php;h=1b5a834c9460ddd8bb35cc1627e5683449946cc2;hb=207a47a1fe50f51e999e28e1796c083e46860a15;hp=ff40aa5a5d2b8d66b206acde3e52989d41752917;hpb=4b63ca7113ee48b8c33ad19abc5b89d452b3590e;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() {