if ( !$from instanceof SessionInfo ) {
throw new \InvalidArgumentException( 'Invalid copyFrom' );
}
- $data += array(
+ $data += [
'provider' => $from->provider,
'id' => $from->id,
'userInfo' => $from->userInfo,
'metadata' => $from->providerMetadata,
'idIsSafe' => $from->idIsSafe,
// @codeCoverageIgnoreStart
- );
+ ];
// @codeCoverageIgnoreEnd
} else {
- $data += array(
+ $data += [
'provider' => null,
'id' => null,
'userInfo' => null,
'metadata' => null,
'idIsSafe' => false,
// @codeCoverageIgnoreStart
- );
+ ];
// @codeCoverageIgnoreEnd
}
/**
* Return whether the session is persisted
- *
- * i.e. a session ID was given to the constuctor
- *
* @return bool
*/
final public function wasPersisted() {