Merge pull request #23692 from frederic34/patch-12

fix php8.2 warnings
This commit is contained in:
Laurent Destailleur 2023-01-25 23:43:19 +01:00 committed by GitHub
commit d01737017b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,6 +41,11 @@ class DolLogsCollector extends MessagesCollector
*/
protected $maxnboflines;
/**
* @var int number of lines
*/
protected $nboflines;
/**
* Constructor
*
@ -54,7 +59,7 @@ class DolLogsCollector extends MessagesCollector
parent::__construct($name);
$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();
}