Remove getValue from enum calls

This commit is contained in:
Jeroen De Meerleer 2023-01-14 14:34:19 +01:00
parent e0aaf5c286
commit a016fcb012
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
3 changed files with 4 additions and 4 deletions

View File

@ -29,7 +29,7 @@
},
"config": {
"platform": {
"php": "7.1"
"php": "8.1"
},
"sort-packages": true
}

View File

@ -121,6 +121,6 @@ class Game
return (
$this->White->Player === $game->White->Player &&
$this->Black->Player === $game->Black->Player &&
$this->Result->getKey() == $game->Result->getKey());
$this->Result == $game->Result);
}
}

View File

@ -865,10 +865,10 @@ class Tournament
}
}
$game = new Game();
if ($color->getValue() == Color::WHITE) {
if ($color == Color::WHITE) {
$game->White = $pairing;
$game->Black = $opponent;
} elseif ($color->getValue() == Color::BLACK) {
} elseif ($color == Color::BLACK) {
$game->White = $opponent;
$game->Black = $pairing;
}