Skip to content

Commit

Permalink
[7.0] Cleanup legacy code paths
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Oct 19, 2023
1 parent 7407e91 commit e0b8cbd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 1 addition & 3 deletions Authentication/RememberMe/TokenProviderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,11 @@ public function deleteTokenBySeries(string $series);
/**
* Updates the token according to this data.
*
* @param \DateTimeInterface $lastUsed Accepting only DateTime is deprecated since Symfony 6.4
*
* @return void
*
* @throws TokenNotFoundException if the token is not found
*/
public function updateToken(string $series, #[\SensitiveParameter] string $tokenValue, \DateTime $lastUsed);
public function updateToken(string $series, #[\SensitiveParameter] string $tokenValue, \DateTimeInterface $lastUsed);

/**
* Creates a new token.
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ CHANGELOG

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

6.4
---
Expand Down

0 comments on commit e0b8cbd

Please sign in to comment.