Qual: Fix phan notices (#39354)

This commit is contained in:
MDW 2026-08-04 16:40:20 +02:00 committed by GitHub
parent 9d4844009f
commit 99bc4e8b44
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 4 deletions

View file

@ -1,8 +1,11 @@
<?php
/* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
/* Copyright (C) 2024-2026 MDW <mdeweerd@users.noreply.github.com>
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
*/
// 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 = '')
{

View file

@ -5,7 +5,7 @@
* Copyright (C) 2015 Raphaël Doursenaud <rdoursenaud@gpcsolutions.fr>
* Copyright (C) 2016 Pierre-Henry Favre <phf@atm-consulting.fr>
* Copyright (C) 2024-2025 Frédéric France <frederic.france@free.fr>
* Copyright (C) 2024-2025 MDW <mdeweerd@users.noreply.github.com>
* Copyright (C) 2024-2026 MDW <mdeweerd@users.noreply.github.com>
*
* 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 {