Qual: Fix ci, PHPdoc fk_website needs to match default value

# Qual: Fix ci, PHPdoc fk_website needs to match default value

Correct doctype for new $fk_website in getCustomerAccount.
Also made definition of type for $status more strict.
This commit is contained in:
MDW 2025-01-18 14:28:35 +01:00
parent 23f2af1bce
commit 89f040c69e
No known key found for this signature in database

View File

@ -4,7 +4,7 @@
* Copyright (C) 2015 Florian Henry <florian.henry@open-concept.pro>
* Copyright (C) 2015 Raphaël Doursenaud <rdoursenaud@gpcsolutions.fr>
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
* Copyright (C) 2024-2025 MDW <mdeweerd@users.noreply.github.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -261,7 +261,7 @@ class SocieteAccount extends CommonObject
}
/**
* Clone and object into another one
* Clone an object into another one
*
* @param User $user User that creates
* @param int $fromid Id of object to clone
@ -340,14 +340,14 @@ class SocieteAccount extends CommonObject
}
/**
* Try to find the external customer id of a thirdparty for another site/system.
* Try to find the external customer id of a third party for another site/system.
*
* @param int $id Id of third party
* @param string $site Site (example: 'stripe', '...')
* @param int $status Status (0=test, 1=live, -1=we don't mind)
* @param string $site_account Value to use to identify with account to use on site when site can offer several accounts. For example: 'pk_live_123456' when using Stripe service.
* @param string $fk_website Id website
* @return string Stripe customer ref 'cu_xxxxxxxxxxxxx' or ''
* @param int $id Id of third party
* @param string $site Site (example: 'stripe', '...')
* @param int<-1,1> $status Status (0=test, 1=live, -1=we don't mind)
* @param string $site_account Value to use to identify with account to use on site when site can offer several accounts. For example: 'pk_live_123456' when using Stripe service.
* @param int $fk_website Id website
* @return string Stripe customer ref 'cu_xxxxxxxxxxxxx' or ''
* @see getThirdPartyID()
*/
public function getCustomerAccount($id, $site, $status = 0, $site_account = '', $fk_website = 0)
@ -442,6 +442,7 @@ class SocieteAccount extends CommonObject
/**
* getTooltipContentArray
*
* @param array<string,mixed> $params params to construct tooltip data
* @since v18
* @return array{picto?:string,ref?:string,refsupplier?:string,label?:string,date?:string,date_echeance?:string,amountht?:string,total_ht?:string,totaltva?:string,amountlt1?:string,amountlt2?:string,amountrevenustamp?:string,totalttc?:string}|array{optimize:string}