Skip to content

Replace tomasvotruba/unused-public with shipmonk/dead-code-detector - #791

Merged
TomasVotruba merged 2 commits into
mainfrom
replace-unused-public-with-dead-code-detector
Oct 6, 2026
Merged

TomasVotruba merged 2 commits into
mainfrom
replace-unused-public-with-dead-code-detector

Conversation

@TomasVotruba

Copy link
Copy Markdown
Member

Swaps the dev dependency tomasvotruba/unused-public for shipmonk/dead-code-detector.

  • shipmonk/dead-code-detector auto-registers via phpstan/extension-installer, so no explicit PHPStan include is needed.
  • The detector flags service constructors as dead because Rector wires these classes through the DI container rather than new. These are false positives, captured in phpstan-dead-code-baseline.neon instead of deleting live code.

PHPStan, ECS, class-leak, finalize-classes, Rector and PHPUnit all pass locally.

@TomasVotruba
TomasVotruba merged commit eb010a0 into main Oct 6, 2026
8 checks passed
@TomasVotruba
TomasVotruba deleted the replace-unused-public-with-dead-code-detector branch October 6, 2026 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant