Skip to content

Commit

Permalink
prepare release
Browse files Browse the repository at this point in the history
  • Loading branch information
spiralbot committed Dec 11, 2024
1 parent 95cda17 commit 311fe70
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/AuthContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function __construct(
) {
}

public function start(TokenInterface $token, string $transport = null): void
public function start(TokenInterface $token, ?string $transport = null): void
{
$this->closed = false;
$this->actor = null;
Expand Down
2 changes: 1 addition & 1 deletion src/AuthContextInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface AuthContextInterface
/**
* Start new auth context based on a given token. Actor can be received on demand.
*/
public function start(TokenInterface $token, string $transport = null): void;
public function start(TokenInterface $token, ?string $transport = null): void;

/**
* Returns associated token if any.
Expand Down
4 changes: 1 addition & 3 deletions src/TokenStorageInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@ public function load(string $id): ?TokenInterface;
/**
* Create token based on the payload provided by actor provider.
*
* @param \DateTimeInterface|null $expiresAt
*
* @throws TokenStorageException
*/
public function create(array $payload, \DateTimeInterface $expiresAt = null): TokenInterface;
public function create(array $payload, ?\DateTimeInterface $expiresAt = null): TokenInterface;

/**
* Delete token from the persistent storage.
Expand Down
2 changes: 1 addition & 1 deletion tests/Stub/TestAuthToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class TestAuthToken implements TokenInterface
* @param array $payload
* @param \DateTimeInterface|null $expiresAt
*/
public function __construct(string $id, array $payload, \DateTimeInterface $expiresAt = null)
public function __construct(string $id, array $payload, ?\DateTimeInterface $expiresAt = null)
{
$this->id = $id;
$this->expiresAt = $expiresAt;
Expand Down

0 comments on commit 311fe70

Please sign in to comment.