fix tests

This commit is contained in:
Dennis Eichhorn 2024-04-25 01:01:37 +00:00
parent e83f48c138
commit 1419f26f89

View File

@ -105,6 +105,13 @@ class Session implements \JsonSerializable
$this->createdAt = new \DateTimeImmutable('now');
}
/**
* Recalculate the session data after changing its elements
*
* @return void
*
* @since 1.0.0
*/
public function recalculate() : void
{
\usort($this->sessionElements, [$this, 'compareSessionElementTimestamps']);