Skip to content

Commit

Permalink
Revert "Create new Json ParameterBag Instance when cloning Request (#…
Browse files Browse the repository at this point in the history
…44671)" (#45147)

This reverts commit 1661857.
  • Loading branch information
taylorotwell authored Nov 30, 2022
1 parent 926cf96 commit bb88601
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Http/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ public static function createFrom(self $from, $to = null)

$request->setDefaultRequestLocale($from->getDefaultLocale());

$request->setJson(clone $from->json());
$request->setJson($from->json());

if ($from->hasSession() && $session = $from->session()) {
$request->setLaravelSession($session);
Expand Down

0 comments on commit bb88601

Please sign in to comment.