From e3821598c8a9b8e046d96090278f030d14c3d6a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Wed, 6 Dec 2023 15:38:07 +0100 Subject: [PATCH] $user default value cant be int --- htdocs/product/class/productcustomerprice.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/product/class/productcustomerprice.class.php b/htdocs/product/class/productcustomerprice.class.php index 392ba0b3aa6..984e1e9b40a 100644 --- a/htdocs/product/class/productcustomerprice.class.php +++ b/htdocs/product/class/productcustomerprice.class.php @@ -598,7 +598,7 @@ class ProductCustomerPrice extends CommonObject * @param int $forceupdateaffiliate update price on each soc child * @return int Return integer <0 if KO, >0 if OK */ - public function update($user = 0, $notrigger = 0, $forceupdateaffiliate = 0) + public function update(User $user, $notrigger = 0, $forceupdateaffiliate = 0) { global $conf, $langs; $error = 0;