mirror of
https://github.com/JeroenED/libpairtwo.git
synced 2024-11-22 06:26:57 +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
|
public function getResult(): Gameresult
|
||||||
{
|
{
|
||||||
if (!is_null(parent::getResult())) {
|
if (!is_null($this->result)) {
|
||||||
return parent::getResult();
|
return $this->result;
|
||||||
}
|
}
|
||||||
|
|
||||||
$whiteResult = $this->getWhite()->getResult();
|
$whiteResult = $this->getWhite()->getResult();
|
||||||
|
Loading…
Reference in New Issue
Block a user