Skip to content

Commit e1b8148

Browse files
committed
Switch typehint strictness to use interface instead of implementation
1 parent 272facb commit e1b8148

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Model/RefreshToken.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class RefreshToken implements RefreshTokenInterface
1717
private $expiry;
1818

1919
/**
20-
* @var AccessToken|null
20+
* @var AccessTokenInterface|null
2121
*/
2222
private $accessToken;
2323

@@ -29,7 +29,7 @@ class RefreshToken implements RefreshTokenInterface
2929
/**
3030
* @psalm-mutation-free
3131
*/
32-
public function __construct(string $identifier, \DateTimeInterface $expiry, ?AccessToken $accessToken = null)
32+
public function __construct(string $identifier, \DateTimeInterface $expiry, ?AccessTokenInterface $accessToken = null)
3333
{
3434
$this->identifier = $identifier;
3535
$this->expiry = $expiry;

0 commit comments

Comments
 (0)