Skip to content

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

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

TomasVotruba merged 3 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.

  • removes tomasvotruba/unused-public, requires shipmonk/dead-code-detector (auto-registers via phpstan/extension-installer)
  • drops the unused-public specific public.method.unused ignore from phpstan.neon
  • adds phpstan-baseline.neon for the new dead-code findings, which are all DI container and console entrypoints (command constructors and run() methods, plus DI service constructors) that the detector cannot trace statically

CI green locally: PHPStan, ECS, Rector, PHPUnit, composer validate, commented-code and class-leak checks.

@TomasVotruba
TomasVotruba merged commit 9782a59 into main Oct 6, 2026
11 checks passed
@TomasVotruba
TomasVotruba deleted the replace-unused-public-with-dead-code-detector branch October 6, 2026 11:53
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.

2 participants