Skip to content

Commit 05885bb

Browse files
authored
Fix phpdoc in ItemConverter.php
Method modelToDataObject in ItemConverter.php said it returns an array, but it actually returns an object of type \Magento\Quote\Model\Cart\Totals\Item. Fixing the PHPDoc for the method.
1 parent fc387f4 commit 05885bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Quote/Model/Cart/Totals/ItemConverter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function __construct(
7171
* Converts a specified rate model to a shipping method data object.
7272
*
7373
* @param \Magento\Quote\Model\Quote\Item $item
74-
* @return array
74+
* @return \Magento\Quote\Model\Cart\Totals\Item
7575
* @throws \Exception
7676
*/
7777
public function modelToDataObject($item)

0 commit comments

Comments
 (0)