This commit is contained in:
William 2022-04-27 14:32:20 +00:00
parent f4d9562b48
commit 3deb8b92b2
2 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,7 @@ class Team
public function setRounds(int $rounds): Self
{
if ($rounds > 9999)
if ($rounds > 99999)
{
throw new InvalidArgumentException("Too many rounds!");
}

View File

@ -60,7 +60,7 @@ class BatonReader
return 2;
}
$team->rounds += 1;
$team->setRounds($team->rounds + 1);
$this->team_mapper->update($team);
if ($team->best_time === NULL)