From 99bc4e8b449ea9be6bd7ca10a6ea69972a81145a Mon Sep 17 00:00:00 2001 From: MDW Date: Tue, 4 Aug 2026 16:40:20 +0200 Subject: [PATCH] Qual: Fix phan notices (#39354) --- htdocs/core/modules/syslog/mod_syslog_file.php | 6 ++++-- htdocs/multicurrency/class/multicurrency.class.php | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/htdocs/core/modules/syslog/mod_syslog_file.php b/htdocs/core/modules/syslog/mod_syslog_file.php index c7d1e514583..cee27fe481e 100644 --- a/htdocs/core/modules/syslog/mod_syslog_file.php +++ b/htdocs/core/modules/syslog/mod_syslog_file.php @@ -1,8 +1,11 @@ +/* Copyright (C) 2024-2026 MDW * Copyright (C) 2024 Frédéric France */ +// File ignore as individual 'suppress' is not extremely effective. +// @phan-file-suppress PhanPluginDuplicateArrayKey + require_once DOL_DOCUMENT_ROOT.'/core/modules/syslog/logHandler.php'; /** @@ -160,7 +163,6 @@ class mod_syslog_file extends LogHandler * @param array{level:int,ip:string,ospid:string,osuser:string,message:string} $content Array containing the info about the message * @param string $suffixinfilename When output is a file, append this suffix into default log filename. * @return void - * @phan-suppress PhanPluginDuplicateArrayKey */ public function export($content, $suffixinfilename = '') { diff --git a/htdocs/multicurrency/class/multicurrency.class.php b/htdocs/multicurrency/class/multicurrency.class.php index 1d6887d7993..505f2efc4ff 100644 --- a/htdocs/multicurrency/class/multicurrency.class.php +++ b/htdocs/multicurrency/class/multicurrency.class.php @@ -5,7 +5,7 @@ * Copyright (C) 2015 Raphaël Doursenaud * Copyright (C) 2016 Pierre-Henry Favre * Copyright (C) 2024-2025 Frédéric France - * Copyright (C) 2024-2025 MDW + * Copyright (C) 2024-2026 MDW * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -718,7 +718,7 @@ class MultiCurrency extends CommonObject } return 1; } else { - if (isset($response->error->info)) { + if (isset($response->error->info)) { // @phan-suppress-current-line PhanTypeExpectedObjectPropAccess $error_info_syslog = $response->error->info; // @phan-suppress-current-line PhanTypeExpectedObjectPropAccess $error_info = $error_info_syslog; } else {