Skip to content

Commit 720fe98

Browse files
[DoctrineBridge] Change argument $lastUsed of DoctrineTokenProvider::updateToken() to accept DateTimeInterface
1 parent bf5bbcf commit 720fe98

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ CHANGELOG
99
* Deprecate `DoctrineDataCollector::addLogger()`, use a `DebugDataHolder` instead
1010
* Deprecate `ContainerAwareLoader`, use dependency injection in your fixtures instead
1111
* Always pass the `Request` object to `EntityValueResolver`'s expression
12+
* [BC BREAK] Change argument `$lastUsed` of `DoctrineTokenProvider::updateToken()` to accept `DateTimeInterface`
1213

1314
6.3
1415
---

Security/RememberMe/DoctrineTokenProvider.php

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,7 @@ public function deleteTokenBySeries(string $series)
7777
$this->conn->executeStatement($sql, $paramValues, $paramTypes);
7878
}
7979

80-
/**
81-
* @param \DateTimeInterface $lastUsed Accepting only DateTime is deprecated since Symfony 6.4
82-
*
83-
* @return void
84-
*/
85-
public function updateToken(string $series, #[\SensitiveParameter] string $tokenValue, \DateTime $lastUsed)
80+
public function updateToken(string $series, #[\SensitiveParameter] string $tokenValue, \DateTimeInterface $lastUsed): void
8681
{
8782
$sql = 'UPDATE rememberme_token SET value=:value, lastUsed=:lastUsed WHERE series=:series';
8883
$paramValues = [

0 commit comments

Comments
 (0)