2
0
forked from Wavyzz/dolibarr

qual: phpstan for htdocs/compta/paiement/class/paiement.class.php (#28364)

htdocs/compta/paiement/class/paiement.class.php	115	PHPDoc type array<int, float> of property Paiement::$multicurrency_tx is not covariant with PHPDoc type float of overridden property CommonObject::$multicurrency_tx.

htdocs/compta/paiement/class/paiement.class.php	120	PHPDoc type array<int, string> of property Paiement::$multicurrency_code is not covariant with PHPDoc type string of overridden property CommonObject::$multicurrency_code.
This commit is contained in:
thibdrev
2024-02-23 13:40:22 +01:00
committed by GitHub
parent 77ae6888ff
commit db2fc174cd

View File

@@ -477,12 +477,14 @@ abstract class CommonObject
public $fk_multicurrency; public $fk_multicurrency;
/** /**
* @var string Multicurrency code * @var string|array<int,string> Multicurrency code
* Or, just for the Paiement object, an array: invoice ID => currency code for that invoice.
*/ */
public $multicurrency_code; public $multicurrency_code;
/** /**
* @var float Multicurrency rate * @var float|array<int,float> Multicurrency rate ("tx" = "taux" in French)
* Or, just for the Paiement object, an array: invoice ID => currency rate for that invoice.
*/ */
public $multicurrency_tx; public $multicurrency_tx;