Skip to content

[Issue] Fix return type in phpdoc #40853

@m2-assistant

Description

@m2-assistant

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 (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • README.md files for modified modules are updated and included in the pull request if any README.md predefined sections require an update
  • All automated tests passed successfully (all builds are green)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Ready for Development

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions