Skip to content

Blink: only drop inheritdoc where PHP-CS-Fixer does - #340

Merged
TomasVotruba merged 1 commit into
ecsphp:mainfrom
owenvoke:blink-phpdoc-no-useless-inheritdoc-scope
Nov 9, 2026
Merged

TomasVotruba merged 1 commit into
ecsphp:mainfrom
owenvoke:blink-phpdoc-no-useless-inheritdoc-scope

Conversation

@owenvoke

@owenvoke owenvoke commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

PhpdocNoUselessInheritdoc removed every {@inheritdoc}, but the PHP fixer only removes it from the docblock before a class or interface that neither extends nor implements, and from docblocks inside one that also uses no trait. Walk classes the same way and leave every other docblock alone, so an overriding method or property in a subclass keeps its tag.

`PhpdocNoUselessInheritdoc` removed every `{@inheritdoc}`, but the PHP fixer
only removes it from the docblock before a class or interface that neither
extends nor implements, and from docblocks inside one that also uses no
trait. Walk classes the same way and leave every other docblock alone, so
an overriding method or property in a subclass keeps its tag.
@TomasVotruba
TomasVotruba merged commit 8297d9e into ecsphp:main Nov 9, 2026
11 of 12 checks passed
@TomasVotruba

Copy link
Copy Markdown
Member

Thank you, looks good 👍

@owenvoke
owenvoke deleted the blink-phpdoc-no-useless-inheritdoc-scope branch November 9, 2026 16:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants