qual: phpstan - Property CommonObject::$tms (int) does not accept string. (#28247)

* Update paymentdonation.class.php

* Update paymentexpensereport.class.php

* Update productbatch.class.php

* Update propalmergepdfproduct.class.php

* Update productstockentrepot.class.php

* Update stocktransfer.class.php

* Update dolresource.class.php

* Update paymentsalary.class.php

* Update salary.class.php
This commit is contained in:
thibdrev 2024-02-18 14:56:31 +01:00 committed by GitHub
parent d9abb3ccb1
commit f7f9dfd77c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 11 additions and 11 deletions

View file

@ -548,7 +548,7 @@ class PaymentDonation extends CommonObject
$this->fk_donation = 0;
$this->datec = '';
$this->tms = '';
$this->tms = dol_now();
$this->datep = '';
$this->amount = '';
$this->fk_typepayment = '';

View file

@ -505,7 +505,7 @@ class PaymentExpenseReport extends CommonObject
$this->fk_expensereport = 0;
$this->datec = '';
$this->tms = '';
$this->tms = dol_now();
$this->datep = '';
$this->amount = '';
$this->fk_typepayment = 0;

View file

@ -341,7 +341,7 @@ class Productbatch extends CommonObject
{
$this->id = 0;
$this->tms = '';
$this->tms = dol_now();
$this->fk_product_stock = '';
$this->sellby = '';
$this->eatby = '';

View file

@ -558,7 +558,7 @@ class Propalmergepdfproduct extends CommonObject
$this->fk_user_author = 0;
$this->fk_user_mod = 0;
$this->datec = '';
$this->tms = '';
$this->tms = dol_now();
$this->import_key = '';
}
}

View file

@ -602,9 +602,9 @@ class ProductStockEntrepot extends CommonObject
{
$this->id = 0;
$this->tms = '';
$this->fk_product = null;
$this->fk_entrepot = null;
$this->tms = dol_now();
$this->fk_product = 0;
$this->fk_entrepot = 0;
$this->seuil_stock_alerte = '';
$this->desiredstock = '';
$this->import_key = '';

View file

@ -491,7 +491,7 @@ class StockTransfer extends CommonObject
*/
public function update(User $user, $notrigger = 0)
{
$this->tms = ''; // Will be done automatically because tms field is on update cascade
$this->tms = 0; // Will be done automatically because tms field is on update cascade
$res = $this->updateCommon($user, $notrigger);
if (($this->socid > 0 || $this->fk_soc > 0) && empty($this->thirdparty)) {
$this->fetch_thirdparty();

View file

@ -170,7 +170,7 @@ class Dolresource extends CommonObject
{
$this->db = $db;
$this->status = 0;
$this->tms = '';
$this->tms = dol_now();
$this->cache_code_type_resource = array();
}

View file

@ -563,7 +563,7 @@ class PaymentSalary extends CommonObject
$this->id = 0;
$this->fk_salary = 0;
$this->datec = '';
$this->tms = '';
$this->tms = dol_now();
$this->datepaye = '';
$this->amount = 0.0;
$this->fk_typepayment = 0;

View file

@ -311,7 +311,7 @@ class Salary extends CommonObject
{
$this->id = 0;
$this->tms = '';
$this->tms = dol_now();
$this->fk_user = 0;
$this->datep = '';
$this->datev = '';