This issue is automatically created based on existing pull request: #37881: Fix return type in phpdoc
Description (*)
The method does return a \Magento\Sales\Api\Data\OrderItemInterface and it should be typed as such. \Magento\Sales\Model\Order::getItems is called to get the item and in its phpdoc the return type is \Magento\Sales\Api\Data\OrderItemInterface[], so it only makes sense to return \Magento\Sales\Api\Data\OrderItemInterface it in these methods
Fixed Issues (if relevant)
No Issue created.
Manual testing scenarios (*)
No manual testing steps necessary this should be logical in the review.
Questions or comments
Contribution checklist (*)
This issue is automatically created based on existing pull request: #37881: Fix return type in phpdoc
Description (*)
The method does return a
\Magento\Sales\Api\Data\OrderItemInterfaceand it should be typed as such.\Magento\Sales\Model\Order::getItemsis called to get the item and in its phpdoc the return type is\Magento\Sales\Api\Data\OrderItemInterface[], so it only makes sense to return\Magento\Sales\Api\Data\OrderItemInterfaceit in these methodsFixed Issues (if relevant)
No Issue created.
Manual testing scenarios (*)
No manual testing steps necessary this should be logical in the review.
Questions or comments
Contribution checklist (*)