mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
fix phan
This commit is contained in:
parent
6623a3c23d
commit
6f2611cf74
|
|
@ -17,7 +17,7 @@ return [
|
|||
// PhanTypeMismatchProperty : 130+ occurrences
|
||||
// PhanPluginUnknownArrayMethodParamType : 120+ occurrences
|
||||
// PhanPluginUnknownPropertyType : 110+ occurrences
|
||||
// PhanPossiblyUndeclaredVariable : 80+ occurrences
|
||||
// PhanPossiblyUndeclaredVariable : 65+ occurrences
|
||||
// PhanRedefineFunction : 45+ occurrences
|
||||
// PhanTypeExpectedObjectPropAccess : 45+ occurrences
|
||||
// PhanTypeMismatchArgumentNullableInternal : 40+ occurrences
|
||||
|
|
@ -507,7 +507,7 @@ return [
|
|||
'htdocs/recruitment/admin/setup_candidatures.php' => ['PhanEmptyForeach'],
|
||||
'htdocs/recruitment/class/recruitmentcandidature.class.php' => ['PhanUndeclaredProperty'],
|
||||
'htdocs/recruitment/class/recruitmentjobposition.class.php' => ['PhanUndeclaredProperty'],
|
||||
'htdocs/recruitment/core/modules/recruitment/doc/pdf_standard_recruitmentjobposition.modules.php' => ['PhanPossiblyUndeclaredVariable', 'PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
|
||||
'htdocs/recruitment/core/modules/recruitment/doc/pdf_standard_recruitmentjobposition.modules.php' => ['PhanTypeMismatchArgumentProbablyReal', 'PhanUndeclaredProperty'],
|
||||
'htdocs/recruitment/core/modules/recruitment/mod_recruitmentcandidature_advanced.php' => ['PhanPluginSuspiciousParamOrder', 'PhanUndeclaredProperty'],
|
||||
'htdocs/recruitment/core/modules/recruitment/mod_recruitmentjobposition_advanced.php' => ['PhanPluginSuspiciousParamOrder', 'PhanUndeclaredProperty'],
|
||||
'htdocs/recruitment/index.php' => ['PhanUndeclaredGlobalVariable'],
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ class BookKeeping extends CommonObject
|
|||
public $doc_date;
|
||||
|
||||
/**
|
||||
* @var int|'' Deadline for payment
|
||||
* @var int|null|'' Deadline for payment
|
||||
*/
|
||||
public $date_lim_reglement;
|
||||
|
||||
|
|
@ -2926,7 +2926,7 @@ class BookKeeping extends CommonObject
|
|||
$result = $this->db->query($sql);
|
||||
if (!$result) {
|
||||
$this->errors[] = 'Error: ' . $this->db->lasterror();
|
||||
dol_syslog(__METHOD__ . ' ' . join(',', $this->errors), LOG_ERR);
|
||||
dol_syslog(__METHOD__ . ' ' . implode(',', $this->errors), LOG_ERR);
|
||||
$error++;
|
||||
}
|
||||
$objtmp = $this->db->fetch_object($result);
|
||||
|
|
@ -2938,7 +2938,7 @@ class BookKeeping extends CommonObject
|
|||
|
||||
$bookkeeping->numero_compte = $obj->numero_compte;
|
||||
$accountingaccount = new AccountingAccount($this->db);
|
||||
$accountingaccount->fetch('', $obj->numero_compte);
|
||||
$accountingaccount->fetch(0, $obj->numero_compte);
|
||||
$bookkeeping->label_compte = $accountingaccount->label; // latest account label used
|
||||
|
||||
$bookkeeping->label_operation = $new_fiscal_period->label;
|
||||
|
|
@ -2953,8 +2953,7 @@ class BookKeeping extends CommonObject
|
|||
|
||||
$result = $bookkeeping->create($user);
|
||||
if ($result < 0) {
|
||||
$this->error = $bookkeeping->error;
|
||||
$this->errors = $bookkeeping->errors;
|
||||
$this->setErrorsFromObject($bookkeeping);
|
||||
$error++;
|
||||
break;
|
||||
}
|
||||
|
|
@ -2990,7 +2989,7 @@ class BookKeeping extends CommonObject
|
|||
$result = $this->db->query($sql);
|
||||
if (!$result) {
|
||||
$this->errors[] = 'Error: ' . $this->db->lasterror();
|
||||
dol_syslog(__METHOD__ . ' ' . join(',', $this->errors), LOG_ERR);
|
||||
dol_syslog(__METHOD__ . ' ' . implode(',', $this->errors), LOG_ERR);
|
||||
$error++;
|
||||
}
|
||||
$objtmp = $this->db->fetch_object($result);
|
||||
|
|
@ -3015,8 +3014,7 @@ class BookKeeping extends CommonObject
|
|||
|
||||
$result = $bookkeeping->create($user);
|
||||
if ($result < 0) {
|
||||
$this->error = $bookkeeping->error;
|
||||
$this->errors = $bookkeeping->errors;
|
||||
$this->setErrorsFromObject($bookkeeping);
|
||||
$error++;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user