File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed
Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class AuthenticationBuilder
1818{
1919 private array $ authentications ;
2020
21- public function addCookie (string $ authenticationScheme = AuthenticationScheme::CookieSession, Closure $ configuration = null ): void
21+ public function addCookie (string $ authenticationScheme = AuthenticationScheme::CookieSession, ? Closure $ configuration = null ): void
2222 {
2323 $ options = new AuthenticationCookieOptions ();
2424 if ($ configuration ) {
@@ -28,7 +28,7 @@ public function addCookie(string $authenticationScheme = AuthenticationScheme::C
2828 $ this ->authentications [$ authenticationScheme ] = new AuthenticationCookieHandler ($ options );
2929 }
3030
31- public function addJwtBearer (string $ authenticationScheme = AuthenticationScheme::JwtBearer, Closure $ configuration = null ): void
31+ public function addJwtBearer (string $ authenticationScheme = AuthenticationScheme::JwtBearer, ? Closure $ configuration = null ): void
3232 {
3333 $ options = new JwtBearerOptions ();
3434 if ($ configuration ) {
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ class ClaimsIdentity implements IEnumerable
2020 private ?string $ authenticationType ;
2121 private array $ claims = [];
2222
23- public function __construct (string $ authenticationType = null , array $ claims = [])
23+ public function __construct (? string $ authenticationType = null , array $ claims = [])
2424 {
2525 $ this ->authenticationType = $ authenticationType ;
2626 $ this ->claims = $ claims ;
Original file line number Diff line number Diff line change @@ -52,7 +52,6 @@ public function start(): void
5252 }
5353
5454 $ _COOKIE [$ this ->name ] = $ this ->id ;
55- //setcookie(session_name(), session_id(), time()+$lifetime);
5655 $ this ->set ('SessionOptions ' , $ this ->options );
5756 }
5857
You can’t perform that action at this time.
0 commit comments