Skip to content

Commit 613b18e

Browse files
authored
Merge pull request #1 from DevNet-Framework/1.1
fix: deprecation warning of Implicitly marking parameters as nullable PHP 8.4
2 parents 3ea5cfe + b0b443d commit 613b18e

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

lib/Authentication/AuthenticationBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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) {

lib/Claims/ClaimsIdentity.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

lib/Session.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)