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

@ -32,6 +32,14 @@ class PlayerDetailed {
/** @var ManiaControl $maniaControl */
private $maniaControl = null;
private $width;
private $height;
private $contentY;
private $infoColWidth;
private $margin;
private $padding;
/**
* Create a new Player Detailed Instance
*
@ -43,8 +51,6 @@ class PlayerDetailed {
// Settings
$this->width = $this->maniaControl->getManialinkManager()->getStyleManager()->getListWidgetsWidth();
$this->height = $this->maniaControl->getManialinkManager()->getStyleManager()->getListWidgetsHeight();
$this->quadStyle = $this->maniaControl->getManialinkManager()->getStyleManager()->getDefaultMainWindowStyle();
$this->quadSubstyle = $this->maniaControl->getManialinkManager()->getStyleManager()->getDefaultMainWindowSubStyle();
//Class variables
$this->contentY = $this->height / 2 - 15;