diff --git a/src/Illuminate/Session/DatabaseSessionHandler.php b/src/Illuminate/Session/DatabaseSessionHandler.php index d4aa10f63a07..202518df8c24 100644 --- a/src/Illuminate/Session/DatabaseSessionHandler.php +++ b/src/Illuminate/Session/DatabaseSessionHandler.php @@ -177,7 +177,7 @@ protected function getDefaultPayload($data) return $payload; } - return tap($payload, function ($payload) { + return tap($payload, function (&$payload) { $this->addUserInformation($payload) ->addRequestInformation($payload); });