Skip to content

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

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

TomasVotruba merged 1 commit 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 remove --dev tomasvotruba/unused-public, composer require --dev shipmonk/dead-code-detector (auto-registers via extension-installer)
  • Dropped the now-obsolete ERROR_MESSAGE/TEST_ERROR_MESSAGE unused-public ignores from phpstan.neon
  • Added the single #^Unused .*?::__construct0 ignore recommended by dead-code-detector for PHPStan extensions - rule/collector constructors are instantiated by the PHPStan DI container and are not visible during self-analysis

CI run locally: phpstan, ecs, rector, phpunit, neon-lint, composer validate, composer-dependency-analyser and class-leak all green.

@TomasVotruba
TomasVotruba merged commit 74973f8 into main Oct 6, 2026
9 checks passed
@TomasVotruba
TomasVotruba deleted the replace-unused-public-with-dead-code-detector branch October 6, 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