We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe07d7a commit c560981Copy full SHA for c560981
app/code/Magento/Sales/Model/Order/Webapi/ChangeOutputArray.php
@@ -10,6 +10,7 @@
10
use Magento\Sales\Api\Data\OrderItemInterface;
11
use Magento\Sales\Block\Adminhtml\Items\Column\DefaultColumn;
12
use Magento\Sales\Block\Order\Item\Renderer\DefaultRenderer;
13
+use Magento\Tests\NamingConvention\true\float;
14
15
/**
16
* Class for changing row total in response.
@@ -69,10 +70,10 @@ public function execute(
69
70
* Remove negative values from row totals
71
*
72
* @param float $value
- * @return mixed
73
+ * @return float
74
*/
- private function round(float $value)
75
+ private function round(float $value): float
76
{
- return max($value, 0);
77
+ return (float) max($value, 0);
78
}
79
0 commit comments