From 3deb8b92b243349df83ed0058ecba9cd9f9ef43b Mon Sep 17 00:00:00 2001 From: William Date: Wed, 27 Apr 2022 14:32:20 +0000 Subject: [PATCH] Commit --- app/lib/App/Teamtable/Team.php | 2 +- app/model/BatonReader.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/lib/App/Teamtable/Team.php b/app/lib/App/Teamtable/Team.php index b63362a..4feb832 100644 --- a/app/lib/App/Teamtable/Team.php +++ b/app/lib/App/Teamtable/Team.php @@ -101,7 +101,7 @@ class Team public function setRounds(int $rounds): Self { - if ($rounds > 9999) + if ($rounds > 99999) { throw new InvalidArgumentException("Too many rounds!"); } diff --git a/app/model/BatonReader.php b/app/model/BatonReader.php index b0b48b8..4c36b8c 100644 --- a/app/model/BatonReader.php +++ b/app/model/BatonReader.php @@ -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)