Problem/Motivation

phpcbf add a dot to all inherit docs. I think this bug was introduced in #2306873: Not sentences no longer errorring (not requiring capital start or punctuation end) and makes perfect sense, but we need a special case for inheritdoc.

Example

   /**
-   * {@inheritdoc}
+   * {@inheritdoc}.
    */

Proposed resolution

Remaining tasks

User interface changes

API changes

Comments

webflo’s picture

Issue summary: View changes
pfrenssen’s picture

We should also check this for the other inline tags that are supported by PHPDoc, ref PHPDocumentor inline tags.

pfrenssen’s picture

Title: Wrong sniff for {@inheritDoc} » Wrong sniff for {@inheritdoc}
Issue summary: View changes

Fixed capitalization of inheritdoc. The D is lowercase.

klausi’s picture

Title: Wrong sniff for {@inheritdoc} » Fixer should not add dot to {@inheritdoc}
klausi’s picture

Status: Active » Postponed (maintainer needs more info)

cannot reproduce - could you post a code snippet that triggers the error? Could you also test the latest dev version?

klausi’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Closing due to lack of activity, feel free to reopen with more details.