fix phpstan

This commit is contained in:
Frédéric FRANCE 2024-12-11 18:12:08 +01:00
parent 45fa431092
commit 3bb34cbf24
No known key found for this signature in database
GPG Key ID: C06E4A9656127239
2 changed files with 4 additions and 34 deletions

View File

@ -25410,36 +25410,6 @@ parameters:
count: 1
path: ../../htdocs/product/class/product.class.php
-
message: '#^Property Product\:\:\$stats_bom has no type specified\.$#'
identifier: missingType.property
count: 1
path: ../../htdocs/product/class/product.class.php
-
message: '#^Property Product\:\:\$stats_facture_fournisseur has no type specified\.$#'
identifier: missingType.property
count: 1
path: ../../htdocs/product/class/product.class.php
-
message: '#^Property Product\:\:\$stats_facturerec has no type specified\.$#'
identifier: missingType.property
count: 1
path: ../../htdocs/product/class/product.class.php
-
message: '#^Property Product\:\:\$stats_mrptoconsume has no type specified\.$#'
identifier: missingType.property
count: 1
path: ../../htdocs/product/class/product.class.php
-
message: '#^Property Product\:\:\$stats_mrptoproduce has no type specified\.$#'
identifier: missingType.property
count: 1
path: ../../htdocs/product/class/product.class.php
-
message: '#^Property Product\:\:\$status \(int\) in isset\(\) is not nullable\.$#'
identifier: isset.property

View File

@ -1141,10 +1141,10 @@ class Product extends CommonObject
if ($id > 0) {
$this->id = $id;
$this->price = $price_ht;
$this->price_ttc = $price_ttc;
$this->price_min = $price_min_ht;
$this->price_min_ttc = $price_min_ttc;
$this->price = $price_ht;
$this->price_ttc = $price_ttc;
$this->price_min = $price_min_ht;
$this->price_min_ttc = $price_min_ttc;
$result = $this->_log_price($user);
if ($result > 0) {