Skip to content

Commit ade1448

Browse files
[Security] Revert native return types on TokenProviderInterface
1 parent e267f60 commit ade1448

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

Authentication/RememberMe/TokenProviderInterface.php

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,32 @@ interface TokenProviderInterface
2323
/**
2424
* Loads the active token for the given series.
2525
*
26+
* @return PersistentTokenInterface
27+
*
2628
* @throws TokenNotFoundException if the token is not found
2729
*/
28-
public function loadTokenBySeries(string $series): PersistentTokenInterface;
30+
public function loadTokenBySeries(string $series);
2931

3032
/**
3133
* Deletes all tokens belonging to series.
34+
*
35+
* @return void
3236
*/
33-
public function deleteTokenBySeries(string $series): void;
37+
public function deleteTokenBySeries(string $series);
3438

3539
/**
3640
* Updates the token according to this data.
3741
*
42+
* @return void
43+
*
3844
* @throws TokenNotFoundException if the token is not found
3945
*/
40-
public function updateToken(string $series, #[\SensitiveParameter] string $tokenValue, \DateTime $lastUsed): void;
46+
public function updateToken(string $series, #[\SensitiveParameter] string $tokenValue, \DateTime $lastUsed);
4147

4248
/**
4349
* Creates a new token.
50+
*
51+
* @return void
4452
*/
45-
public function createNewToken(PersistentTokenInterface $token): void;
53+
public function createNewToken(PersistentTokenInterface $token);
4654
}

0 commit comments

Comments
 (0)