Skip to content

Conversation

ronak2ram
Copy link
Member

Original Pull Request

#16408

Summary

Fixes type hints and PHPDocs in Magento\Downloadable\Block\Catalog\Product\Samples.

Description

In the block class unprecise type hints and PHPDocs are provided. Instead of Magento\Downloadable\Model\ResourceModel\Sample the method getSampleUrl gets an object of type Magento\Downloadable\Model\Sample which actually should be considered as Magento\Downloadable\Api\Data\SampleInterface. Also getSamples doesn't return an array, it returns a Collection.

Fixed Issues

This pull request is not fixing a bug, it just to improve type hints in IDE.

@magento-engcom-team
Copy link
Contributor

Hi @ronak2ram. Thank you for your contribution.
We will aim to release these changes as part of 2.1.15.
Please check the release notes for final confirmation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants