Skip to content

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

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

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

  • composer.json: remove unused-public, add shipmonk/dead-code-detector (auto-registered via phpstan/extension-installer).
  • phpstan.neon: drop the unused_public: block, include a baseline.
  • phpstan-baseline.neon: new baseline capturing the dead-code-detector findings. These are DI container autowired constructors (and a few dynamically called interface methods) that the detector cannot trace through the Entropy container, so they are false positives rather than removable code.

CI status: PHPStan, Composer Validate, Coding Standard, Tests and Check Active Classes pass. The Rector job fails, but that failure is pre-existing and unrelated to this change - Rector 2.6.7 flags 5 files under packages/coding-standard and warns that DeprecatedAnnotationToDeprecatedAttributeRector in the skip list is deprecated. None of these touch the dependency swap and they reproduce on main.

@TomasVotruba TomasVotruba reopened this Oct 6, 2026
@TomasVotruba
TomasVotruba force-pushed the replace-unused-public-with-dead-code-detector branch 3 times, most recently from 3c46ca8 to ecc3398 Compare October 7, 2026 08:43
@TomasVotruba
TomasVotruba force-pushed the replace-unused-public-with-dead-code-detector branch from ecc3398 to e056c00 Compare October 7, 2026 08:49
@TomasVotruba
TomasVotruba force-pushed the replace-unused-public-with-dead-code-detector branch from e056c00 to 40ee54f Compare October 7, 2026 08:50
@TomasVotruba
TomasVotruba merged commit 0059a02 into main Oct 7, 2026
19 checks passed
@TomasVotruba
TomasVotruba deleted the replace-unused-public-with-dead-code-detector branch October 7, 2026 09:07
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.

1 participant