From 0da72885460b786a5cb77a57452f9e9590b5797c Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Tue, 26 Mar 2024 22:47:57 +0100 Subject: [PATCH] FIX try to fix phan error --- htdocs/core/modules/syslog/mod_syslog_file.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/modules/syslog/mod_syslog_file.php b/htdocs/core/modules/syslog/mod_syslog_file.php index ffeb142c57a01..c6cb48952fb84 100644 --- a/htdocs/core/modules/syslog/mod_syslog_file.php +++ b/htdocs/core/modules/syslog/mod_syslog_file.php @@ -181,7 +181,7 @@ public function export($content, $suffixinfilename = '') $message = dol_print_date(dol_now('gmt'), 'standard', 'gmt').$delay." ".sprintf("%-7s", $logLevels[$content['level']])." ".sprintf("%-15s", $content['ip']); $message .= " ".sprintf("%7s", dol_trunc($content['ospid'], 7, 'right', 'UTF-8', 1)); $message .= " ".sprintf("%6s", dol_trunc($content['osuser'], 6, 'right', 'UTF-8', 1)); - $message .= " ".($this->ident > 0 ? str_pad('', $this->ident, ' ') : '').$content['message']; + $message .= " ".($this->ident > 0 ? str_pad(((string) ''), ((int) $this->ident), ((string) ' ')) : '').$content['message']; fwrite($filefd, $message."\n"); fclose($filefd); dolChmod($logfile);