Feature request from mc388, posted on GitHub Mar 14, 2016
Steps to reproduce
- Install Magento v2.0.2
- Create a new API method
- Change method phpdoc from
@return \Magento\Sales\Api\Data\OrderInterface Order interface
to @return OrderInterface Order interface
and add a use
statement for Magento\Sales\Api\Data\OrderInterface
- Call the new API method
Expected result
- API should return an OrderInterface object
Actual result
Class OrderInterface does not exists
I think the issue is in Magento\Framework\Reflection\TypeProcessor->getGetterReturnType
. You just read the @return
flag but ignore the use
statement.