Exclude phan error type that is for the moment too annoying to manage

This commit is contained in:
Laurent Destailleur
2024-06-18 19:15:29 +02:00
parent 3516746a10
commit eb537088ba
4 changed files with 11 additions and 9 deletions

View File

@@ -421,6 +421,7 @@ return [
'PhanCompatibleNegativeStringOffset', // return false positive
'PhanPluginConstantVariableBool', // a lot of false positive, in most cases, we want to keep the code as it is
'PhanTypeInvalidDimOffset', // this option costs more time to be supported than it solves time
'PhanTypeObjectUnsetDeclaredProperty',
'PhanTypePossiblyInvalidDimOffset', // a lot of false positive, in most cases, we want to keep the code as it is

View File

@@ -66,6 +66,7 @@ $config['suppress_issue_types'] = [
'PhanCompatibleNegativeStringOffset', // return false positive
'PhanPluginConstantVariableBool', // a lot of false positive, in most cases, we want to keep the code as it is
'PhanTypeInvalidDimOffset', // this option costs more time to be supported than it solves time
'PhanTypeObjectUnsetDeclaredProperty',
'PhanTypePossiblyInvalidDimOffset', // a lot of false positive, in most cases, we want to keep the code as it is

View File

@@ -935,7 +935,7 @@ class Mailing extends CommonObject
$param = array();
if ($status == -1) {
$param = array('badgeParams'=>array('attr'=>array('title'=>$desc)));
$param = array('badgeParams' => array('attr' => array('title' => $desc)));
}
return dolGetStatus($labelStatus[$status], $labelStatusShort[$status], '', $statusType, $mode, '', $param);