Skip to content

Expand the scope of ignored PHP-Doc tags#1516

Merged
gennadigennadigennadi merged 2 commits into
deptrac:4.xfrom
patrickkusebauch:feature/template-likes
Dec 1, 2025
Merged

Expand the scope of ignored PHP-Doc tags#1516
gennadigennadigennadi merged 2 commits into
deptrac:4.xfrom
patrickkusebauch:feature/template-likes

Conversation

@patrickkusebauch

Copy link
Copy Markdown
Collaborator

Closes: #1399

Expand the list of tags that produce placeholder names that should be ignored by Deptrac from @template to also include @template-covariant, @phpstan-type and @phpstan-import-type.

This is coincidentally only necessary for Nikic Parser and not PHPStan parser. That does it out of the box. Also, this is a whack-a-mole, as the list of these types of tags can expand in the future.

Closes: deptrac#1399

Expand the list of tags that produce placeholder names that should be ignored by Deptrac from `@template` to also include `@template-covariant`, `@phpstan-type` and `@phpstan-import-type`.

This is coincidentally only necessary for Nikic Parser and not PHPStan parser. That does it out of the box. Also, this is a whack-a-mole, as the list of these types of tags can expand in the future.
@patrickkusebauch patrickkusebauch changed the title Expand the scope off ignored PHP-Doc tags Expand the scope of ignored PHP-Doc tags Nov 7, 2025
@gennadigennadigennadi gennadigennadigennadi merged commit 8e46049 into deptrac:4.x Dec 1, 2025
19 checks passed
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.

@template-covariant type always appears in Uncovered

2 participants