Qual: Fix phan notices (#39354)
This commit is contained in:
parent
9d4844009f
commit
99bc4e8b44
2 changed files with 6 additions and 4 deletions
|
|
@ -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 = '')
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue