Skip to content

Commit e0b8cbd

Browse files
[7.0] Cleanup legacy code paths
1 parent 7407e91 commit e0b8cbd

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Authentication/RememberMe/TokenProviderInterface.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,11 @@ public function deleteTokenBySeries(string $series);
3939
/**
4040
* Updates the token according to this data.
4141
*
42-
* @param \DateTimeInterface $lastUsed Accepting only DateTime is deprecated since Symfony 6.4
43-
*
4442
* @return void
4543
*
4644
* @throws TokenNotFoundException if the token is not found
4745
*/
48-
public function updateToken(string $series, #[\SensitiveParameter] string $tokenValue, \DateTime $lastUsed);
46+
public function updateToken(string $series, #[\SensitiveParameter] string $tokenValue, \DateTimeInterface $lastUsed);
4947

5048
/**
5149
* Creates a new token.

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ CHANGELOG
77

88
* Remove the `Security` class, use `Symfony\Bundle\SecurityBundle\Security` instead
99
* Require explicit argument when calling `TokenStorage::setToken()`
10+
* Change argument `$lastUsed` of `TokenProviderInterface::updateToken()` to accept `DateTimeInterface`
1011

1112
6.4
1213
---

0 commit comments

Comments
 (0)