Remove getValue from enum calls
This commit is contained in:
parent
e0aaf5c286
commit
a016fcb012
@ -29,7 +29,7 @@
|
||||
},
|
||||
"config": {
|
||||
"platform": {
|
||||
"php": "7.1"
|
||||
"php": "8.1"
|
||||
},
|
||||
"sort-packages": true
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user