Add compatibility with php 8.2

This commit is contained in:
Beu
2023-01-17 10:06:56 +01:00
parent 16889f1a6a
commit 9e8432999b
8 changed files with 25 additions and 4 deletions

View File

@ -40,11 +40,11 @@ class OnRespawnStructure extends BasePlayerTimeStructure {
$this->numberOfRespawns = (int) $jsonObj->nbrespawns;
$this->raceTime = (int) $jsonObj->racetime;
$this->lapTime = (int) $jsonObj->laptime;
$this->stuntsScore = $jsonObj->stuntsscore;
if (isset($jsonObj->stuntsscore)) $this->stuntsScore = $jsonObj->stuntsscore;
$this->checkPointInRace = (int) $jsonObj->checkpointinrace;
$this->checkPointInLap = (int) $jsonObj->checkpointinlap;
$this->speed = $jsonObj->speed;
$this->distance = $jsonObj->distance;
if (isset($jsonObj->distance)) $this->distance = $jsonObj->distance;
}
/**