diff --git a/src/Models/Player.php b/src/Models/Player.php index 216b56b..18e8ebd 100644 --- a/src/Models/Player.php +++ b/src/Models/Player.php @@ -70,7 +70,7 @@ abstract class Player /** * @return string[] */ - public function getIds(): array + public function getIds(): ?array { return $this->Ids; } @@ -88,7 +88,7 @@ abstract class Player /** * @return int[] */ - public function getElos(): array + public function getElos(): ?array { return $this->Elos; } diff --git a/src/Readers/Pairtwo6.php b/src/Readers/Pairtwo6.php index 4f3b88d..208e017 100644 --- a/src/Readers/Pairtwo6.php +++ b/src/Readers/Pairtwo6.php @@ -458,8 +458,6 @@ class Pairtwo6 extends Pairtwo6Model implements ReaderInterface $player->setBinaryData("TieMatch", $this->readData('Int', substr($swscontents, $offset, $length))); $offset += $length; - $player->setElos($elos); - $player->setIds($ids); $this->getTournament()->addPlayer($player); } // PlayerNames diff --git a/src/Tournament.php b/src/Tournament.php index 333c36a..cd08fa7 100644 --- a/src/Tournament.php +++ b/src/Tournament.php @@ -264,7 +264,7 @@ class Tournament extends Tiebreaks /** - * @return float|bool + * @return float|null */ private function calculateTiebreak(Tiebreak $tiebreak, Player $player, int $tbkey = 0): ?float {