fix php8.2 warnings

This commit is contained in:
Frédéric FRANCE 2023-01-25 21:56:49 +01:00 committed by Laurent Destailleur
parent 3692f9534e
commit 47d241bf50

View File

@ -20,6 +20,11 @@ class DolLogsCollector extends MessagesCollector
*/ */
protected $maxnboflines; protected $maxnboflines;
/**
* @var int number of lines
*/
protected $nboflines;
/** /**
* Constructor * Constructor
* *
@ -33,7 +38,7 @@ class DolLogsCollector extends MessagesCollector
parent::__construct($name); parent::__construct($name);
$this->nboflines = 0; $this->nboflines = 0;
$this->maxnboflines = empty($conf->global->DEBUGBAR_LOGS_LINES_NUMBER) ? 250 : $conf->global->DEBUGBAR_LOGS_LINES_NUMBER; // High number slows seriously output $this->maxnboflines = getDolGlobalInt('DEBUGBAR_LOGS_LINES_NUMBER', 250); // High number slows seriously output
$this->path = $path ?: $this->getLogsFile(); $this->path = $path ?: $this->getLogsFile();
} }