qual: phpstan for htdocs/compta/paiement/class/cpaiement.class.php (#27981)
htdocs/compta/paiement/class/cpaiement.class.php 98 Property Cpaiement::$active (int) does not accept string. htdocs/compta/paiement/class/cpaiement.class.php 253 Property Cpaiement::$active (int) does not accept string. htdocs/compta/paiement/class/cpaiement.class.php 373 Property Cpaiement::$active (int) does not accept string.
This commit is contained in:
parent
d99a3d9f35
commit
9aec1a41fe
1 changed files with 3 additions and 4 deletions
|
|
@ -95,7 +95,7 @@ class Cpaiement extends CommonDict
|
|||
$this->type = trim($this->type);
|
||||
}
|
||||
if (isset($this->active)) {
|
||||
$this->active = trim($this->active);
|
||||
$this->active = (int) $this->active;
|
||||
}
|
||||
if (isset($this->accountancy_code)) {
|
||||
$this->accountancy_code = trim($this->accountancy_code);
|
||||
|
|
@ -250,7 +250,7 @@ class Cpaiement extends CommonDict
|
|||
$this->type = trim($this->type);
|
||||
}
|
||||
if (isset($this->active)) {
|
||||
$this->active = trim($this->active);
|
||||
$this->active = (int) $this->active;
|
||||
}
|
||||
if (isset($this->accountancy_code)) {
|
||||
$this->accountancy_code = trim($this->accountancy_code);
|
||||
|
|
@ -365,12 +365,11 @@ class Cpaiement extends CommonDict
|
|||
public function initAsSpecimen()
|
||||
{
|
||||
$this->id = 0;
|
||||
|
||||
$this->code = '';
|
||||
$this->libelle = '';
|
||||
$this->label = '';
|
||||
$this->type = '';
|
||||
$this->active = '';
|
||||
$this->active = 0;
|
||||
$this->accountancy_code = '';
|
||||
$this->module = '';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue