Skip to content

Update shipmonk/dead-code-detector to ^1.1#423

Merged
spaze merged 4 commits into
mainfrom
spaze/dead-code-detector
May 29, 2026
Merged

Update shipmonk/dead-code-detector to ^1.1#423
spaze merged 4 commits into
mainfrom
spaze/dead-code-detector

Conversation

@spaze
Copy link
Copy Markdown
Owner

@spaze spaze commented May 29, 2026

No description provided.

@spaze spaze self-assigned this May 29, 2026
Copilot AI review requested due to automatic review settings May 29, 2026 03:02
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the dev-only dead code analysis dependency used by the project’s PHPStan configuration.

Changes:

  • Bumps shipmonk/dead-code-detector from ^0.15.0 to ^1.1.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread composer.json
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread .github/workflows/php.yml
@spaze spaze force-pushed the spaze/dead-code-detector branch 6 times, most recently from 27b3d63 to 6acad9c Compare May 29, 2026 13:04
spaze added 2 commits May 29, 2026 15:26
… dead-code-detector config

Use the presence of `vendor/shipmonk/dead-code-detector/rules.neon` instead of `Composer\InstalledVersions::isInstalled()` instead. Because when PHPStan loads this config, the `InstalledVersions` class comes from `phpstan.phar` as PHPStan itself uses the detector, so it reflects PHPStan's own bundled dependencies rather than the project's installed packages.

It was working before, because I've removed the detector only for `--prefer-lowest` dependencies, and PHPStan installed with `--prefer-lowest` wasn't using the detector yet, so it all worked.
@spaze spaze force-pushed the spaze/dead-code-detector branch from 6acad9c to fe9c1ba Compare May 29, 2026 14:03
…unsupported dependencies

While the dead-code-detector package is not needed for PHPUnit, it still affects dependency resolution, and as it requires PHP 8.1+, a compatible dependency set would not be possible on older PHPs.
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.

@spaze spaze merged commit ecc864a into main May 29, 2026
149 of 151 checks passed
@spaze spaze deleted the spaze/dead-code-detector branch May 29, 2026 14:38
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.

2 participants