Closed (duplicate)
Project:
Drupal core
Version:
9.3.x-dev
Component:
documentation
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
6 Mar 2017 at 06:46 UTC
Updated:
5 May 2021 at 03:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
shashikant_chauhan commentedAdding patch for it.
Comment #3
krina.addweb commented@shashikant_chauhan,Thanks! for the patch it works well, so moved it to RTBC
Comment #4
alexpottIdeally we'd have a coder rule that enforces the correct format for {@inheritdoc}. There are also a number of occurrences of
{@inheritDoc}whereas the standard and far more common case is all lowercase.In order to fix this we should create the rule and fixer in coder. And then use this issue to apply the new rule to core and fix them. We should have a follow-up issue to extend the new coder rule to check that inherited doc blocks do not contain additional comments since this is not supported by api.drupal.org but is quite common in core.
See #2571965: [meta] Fix PHP coding standards in core, stage 1 and the many sub issues for how the process of fixing something like this in core should occur.
Comment #7
jacobsanford@shashikant_chauhan's patch in #2 no longer applied to 8.6.x. A reroll with no further modifications is attached.
The method suggested by @alexpott still is outstanding.
Comment #8
zahord commentedComment #9
borisson_Postponing this on #2939783: @inheritdoc - check for misspelling
Comment #10
Anonymous (not verified) commentedMore cases in the core:
Comment #17
quietone commentedThis has been fixed in #3138731: Fix "inheritdoc" typos in core and #3132287: Fix wrong usages of {@inheritdoc}. Closing as a duplicate.