From db2fc174cd4e9f9fc2f15a47cd783d1ea48ece0c Mon Sep 17 00:00:00 2001 From: thibdrev Date: Fri, 23 Feb 2024 13:40:22 +0100 Subject: [PATCH] qual: phpstan for htdocs/compta/paiement/class/paiement.class.php (#28364) htdocs/compta/paiement/class/paiement.class.php 115 PHPDoc type array 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 of property Paiement::$multicurrency_code is not covariant with PHPDoc type string of overridden property CommonObject::$multicurrency_code. --- htdocs/core/class/commonobject.class.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php index c56bd1cdf29..6ebd5112ec4 100644 --- a/htdocs/core/class/commonobject.class.php +++ b/htdocs/core/class/commonobject.class.php @@ -477,12 +477,14 @@ abstract class CommonObject public $fk_multicurrency; /** - * @var string Multicurrency code + * @var string|array Multicurrency code + * Or, just for the Paiement object, an array: invoice ID => currency code for that invoice. */ public $multicurrency_code; /** - * @var float Multicurrency rate + * @var float|array Multicurrency rate ("tx" = "taux" in French) + * Or, just for the Paiement object, an array: invoice ID => currency rate for that invoice. */ public $multicurrency_tx;