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:
thibdrev 2024-02-03 14:37:17 +01:00 committed by GitHub
parent d99a3d9f35
commit 9aec1a41fe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 = '';
}