More type work

This commit is contained in:
2023-08-03 09:13:19 +00:00
parent 50bd2b152a
commit 75829ddd60
6 changed files with 24 additions and 5 deletions

View File

@ -44,6 +44,9 @@ abstract class SkillCalculator
return (bool)($this->supportedOptions & $option) == $option;
}
/**
* @param Team[] $teamsOfPlayerToRatings
*/
protected function validateTeamCountAndPlayersCountPerTeam(array $teamsOfPlayerToRatings): void
{
self::validateTeamCountAndPlayersCountPerTeamWithRanges($teamsOfPlayerToRatings, $this->totalTeamsAllowed, $this->playersPerTeamAllowed);