mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-13 03:54:02 +00:00
phpcsfixer: enable nullable_type_declaration_for_default_null_value
This commit is contained in:
parent
eecf6f21c8
commit
20c1b9a940
6 changed files with 10 additions and 9 deletions
|
|
@ -30,7 +30,7 @@ class UserImpersonation implements Feature
|
|||
}
|
||||
|
||||
/** Impersonate a user and get an HTTP redirect response. */
|
||||
public static function makeResponse(string|ImpersonationToken $token, int $ttl = null): RedirectResponse
|
||||
public static function makeResponse(string|ImpersonationToken $token, ?int $ttl = null): RedirectResponse
|
||||
{
|
||||
/** @var ImpersonationToken $token */
|
||||
$token = $token instanceof ImpersonationToken ? $token : ImpersonationToken::findOrFail($token);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue