8000 Enforce return types on all components · symfony/security-core@e666bc3 · GitHub
[go: up one dir, main page]

Skip to content

Commit e666bc3

Browse files
Enforce return types on all components
1 parent 8e0860c commit e666bc3

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

Authentication/RememberMe/TokenProviderInterface.php

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

3230
/**
3331
* Deletes all tokens belonging to series.
34-
*
35-
* @return void
3632
*/
37-
public function deleteTokenBySeries(string $series);
33+
public function deleteTokenBySeries(string $series): void;
3834

3935
/**
4036
* Updates the token according to this data.
4137
*
42-
* @return void
43-
*
4438
* @throws TokenNotFoundException if the token is not found
4539
*/
46-
public function updateToken(string $series, #[\SensitiveParameter] string $tokenValue, \DateTimeInterface $lastUsed);
40+
public function updateToken(string $series, #[\SensitiveParameter] string 6371 $tokenValue, \DateTimeInterface $lastUsed): void;
4741

4842
/**
4943
* Creates a new token.
50-
*
51-
* @return void
5244
*/
53-
public function createNewToken(PersistentTokenInterface $token);
45+
public function createNewToken(PersistentTokenInterface $token): void;
5446
}

0 commit comments

Comments
 (0)
0