mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-21 22:17:41 +01:00
Fixed fatal error
Cannot access parent:: when current class scope has no parent
This commit is contained in:
parent
7b711cff8e
commit
2b9337535b
@ -45,8 +45,8 @@ class Game
|
||||
*/
|
||||
public function getResult(): Gameresult
|
||||
{
|
||||
if (!is_null(parent::getResult())) {
|
||||
return parent::getResult();
|
||||
if (!is_null($this->result)) {
|
||||
return $this->result;
|
||||
}
|
||||
|
||||
$whiteResult = $this->getWhite()->getResult();
|
||||
|
Loading…
Reference in New Issue
Block a user