core-bundle/src/Security/Authentication/RememberMe/DatabaseTokenProvider.php
public function updateToken($series, $tokenValue, \DateTime $lastUsed): void
    {
        $sql = '
            UPDATE
                tl_remember_me
            SET
                value=:value, lastUsed=:lastUsed
            WHERE
                series=:series
        ';

        $values = [
            'value' => $tokenValue,
            'lastUsed' => $lastUsed,
            'series' => hash_hmac('sha256', $series, $this->secret),
        ];

        $types = [
            'value' => \PDO::PARAM_STR,
            'lastUsed' => DoctrineType::DATETIME,
            'series' => \PDO::PARAM_STR,
        ];

        $updated = $this->connection->executeUpdate($sql, $values, $types);

        if ($updated < 1) {
            throw new TokenNotFoundException('No token found.');
        }
    }
public function updateToken($series, $tokenValue, \DateTime $lastUsed): void
    {
        $sql = '
            UPDATE
                tl_remember_me
            SET
                value=:value, lastUsed=:lastUsed
            WHERE
                series=:series
        ';

        $values = [
            'value' => $tokenValue,
            'lastUsed' => $lastUsed,
            'series' => hash_hmac('sha256', $series, $this->secret),
        ];

        $types = [
            'value' => \PDO::PARAM_STR,
            'lastUsed' => DoctrineType::DATETIME,
            'series' => \PDO::PARAM_STR,
        ];

        $updated = $this->connection->executeUpdate($sql, $values, $types);

        if ($updated < 1) {
            throw new TokenNotFoundException('No token found.');
        }
    }
{@inheritdoc}