Skip to content

Commit

Permalink
Update UrlGenerator.php (#49944)
Browse files Browse the repository at this point in the history
  • Loading branch information
milwad-dev committed Feb 1, 2024
1 parent 6ded1b8 commit 3734ae9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Illuminate/Routing/UrlGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -194,9 +194,7 @@ public function previousPath($fallback = false)
*/
protected function getPreviousUrlFromSession()
{
$session = $this->getSession();

return $session ? $session->previousUrl() : null;
return $this->getSession()?->previousUrl();
}

/**
Expand Down

0 comments on commit 3734ae9

Please sign in to comment.