From 216a78afad249a7863c2e052e1d9ab9bdbff5399 Mon Sep 17 00:00:00 2001 From: Sebastian <41212477+S-Tian86@users.noreply.github.com> Date: Wed, 6 Dec 2023 13:33:09 -0300 Subject: [PATCH] Type incompatibility fixed The $value property is declared as float. by PHPDoc getValue returns float, but setValue accepts string, so it is necessary to cast value to be consistent with the declared type. --- src/Oro/Bundle/CurrencyBundle/Entity/Price.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Oro/Bundle/CurrencyBundle/Entity/Price.php b/src/Oro/Bundle/CurrencyBundle/Entity/Price.php index 195e5181995..23374cbf8ae 100644 --- a/src/Oro/Bundle/CurrencyBundle/Entity/Price.php +++ b/src/Oro/Bundle/CurrencyBundle/Entity/Price.php @@ -49,7 +49,7 @@ public function getValue() */ public function setValue($value) { - $this->value = $value; + $this->value = (float) $value; return $this; }