Skip to content

Commit 3734ae9

Browse files
authored
Update UrlGenerator.php (#49944)
1 parent 6ded1b8 commit 3734ae9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Illuminate/Routing/UrlGenerator.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,7 @@ public function previousPath($fallback = false)
194194
*/
195195
protected function getPreviousUrlFromSession()
196196
{
197-
$session = $this->getSession();
198-
199-
return $session ? $session->previousUrl() : null;
197+
return $this->getSession()?->previousUrl();
200198
}
201199

202200
/**

0 commit comments

Comments
 (0)