Skip to content

Add @see tag to deprecated property #13301

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 2, 2018
Merged

Add @see tag to deprecated property #13301

merged 1 commit into from
Feb 2, 2018

Conversation

akiojalehto
Copy link
Member

@akiojalehto akiojalehto commented Jan 21, 2018

Description

Add @see tag to deprecated property to point out the desired property

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)
  • All automated tests passed successfully (all builds on Travis CI are green)

@orlangur orlangur self-assigned this Jan 22, 2018
@@ -23,6 +23,7 @@ class AttributeManagement implements \Magento\Eav\Api\AttributeManagementInterfa
/**
* @var \Magento\Eav\Model\ResourceModel\Entity\Attribute\Collection
* @deprecated 100.2.0 please use instead \Magento\Eav\Model\ResourceModel\Entity\Attribute\CollectionFactory
* @see $attributeCollectionFactory
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is such tag already widely used in core code currently? Did you check that such syntax (no "class::") picked up corectly by PHPDoc parser? Ref: https://manual.phpdoc.org/HTMLSmartyConverter/HandS/phpDocumentor/tutorial_tags.see.pkg.html

Copy link
Member Author

@akiojalehto akiojalehto Jan 23, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's working great in IDE and it seems to be already used in the core, e.g. in File. And it is pointing out to the current class' variable.

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