1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 20:14:04 +00:00

Changing null coalescing to Laravel's optional helper method for PHP 7.3 support.

This commit is contained in:
Nathan Daly 2022-08-13 21:39:55 +01:00 committed by GitHub
parent 45e0aad091
commit 9eb82922d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,7 +54,7 @@ class UserImpersonation implements Feature
$token->delete(); $token->delete();
session()->put( session()->put(
'tenancy_impersonated_by', Auth::user()?->getAuthIdentifier() 'tenancy_impersonated_by', optional(Auth::user())->getAuthIdentifier()
); );
return redirect($token->redirect_url); return redirect($token->redirect_url);