Skip to content

Incorrect @return type at getSourceModel in Eav\Attribute #25278

Closed
@pedrodim

Description

@pedrodim

Preconditions (*)

  1. Magento 2.3.x

Steps to reproduce (*)

  1. Check DocBlock of \Magento\Catalog\Model\ResourceModel\Eav\Attribute::getSourceModel() in file vendor/magento/module-catalog/Model/ResourceModel/Eav/Attribute.php.

Expected result (*)

  1. getSourceModel DocBlock should say it returns string|null.
    /**
     * Retrieve source model
     *
     * @return string|null
     */
    public function getSourceModel()
    {

Actual result (*)

  1. getSourceModel DocBlock return type is \Magento\Eav\Model\Entity\Attribute\Source\AbstractSource.
    /**
     * Retrieve source model
     *
     * @return \Magento\Eav\Model\Entity\Attribute\Source\AbstractSource
     */
    public function getSourceModel()
    {

Metadata

Metadata

Assignees

Labels

Component: CatalogFixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentProgress: PR CreatedIndicates that Pull Request has been created to fix issueReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions