$user default value cant be int

This commit is contained in:
Frédéric FRANCE 2023-12-06 15:38:07 +01:00 committed by GitHub
parent 20d3fe4a78
commit e3821598c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;