mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-22 17:31:25 +01:00
Exclude phan error type that is for the moment too annoying to manage
This commit is contained in:
@@ -421,6 +421,7 @@ return [
|
|||||||
|
|
||||||
'PhanCompatibleNegativeStringOffset', // return false positive
|
'PhanCompatibleNegativeStringOffset', // return false positive
|
||||||
'PhanPluginConstantVariableBool', // a lot of false positive, in most cases, we want to keep the code as it is
|
'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',
|
'PhanTypeObjectUnsetDeclaredProperty',
|
||||||
'PhanTypePossiblyInvalidDimOffset', // a lot of false positive, in most cases, we want to keep the code as it is
|
'PhanTypePossiblyInvalidDimOffset', // a lot of false positive, in most cases, we want to keep the code as it is
|
||||||
|
|
||||||
|
|||||||
@@ -66,6 +66,7 @@ $config['suppress_issue_types'] = [
|
|||||||
|
|
||||||
'PhanCompatibleNegativeStringOffset', // return false positive
|
'PhanCompatibleNegativeStringOffset', // return false positive
|
||||||
'PhanPluginConstantVariableBool', // a lot of false positive, in most cases, we want to keep the code as it is
|
'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',
|
'PhanTypeObjectUnsetDeclaredProperty',
|
||||||
'PhanTypePossiblyInvalidDimOffset', // a lot of false positive, in most cases, we want to keep the code as it is
|
'PhanTypePossiblyInvalidDimOffset', // a lot of false positive, in most cases, we want to keep the code as it is
|
||||||
|
|
||||||
|
|||||||
@@ -935,7 +935,7 @@ class Mailing extends CommonObject
|
|||||||
|
|
||||||
$param = array();
|
$param = array();
|
||||||
if ($status == -1) {
|
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);
|
return dolGetStatus($labelStatus[$status], $labelStatusShort[$status], '', $statusType, $mode, '', $param);
|
||||||
|
|||||||
Reference in New Issue
Block a user