Skip to content

Fix #70: remove the dead missingDependencies() factory and the unreachable testbench ^10 range - #101

Open
corgab wants to merge 1 commit into
mainfrom
fix/70-remove-dead-code
Open

Fix #70: remove the dead missingDependencies() factory and the unreachable testbench ^10 range#101
corgab wants to merge 1 commit into
mainfrom
fix/70-remove-dead-code

Conversation

@corgab

@corgab corgab commented Sep 8, 2026

Copy link
Copy Markdown
Owner

Summary

Two leftovers that cost attention on every read without doing anything: an exception factory nobody calls and a Composer range Composer can never pick.

Plan

  1. Confirm PythonEnvironmentException::missingDependencies() has no caller in src/ (only its own unit test references it) and that AetherInstallCommand already reports missing Braket packages through console output.
  2. Delete the factory and its test rather than wiring it into the install command: the command's interactive flow is the intended failure signal, and a throwing path would duplicate it.
  3. Narrow orchestra/testbench to ^11.0, the only branch that resolves against illuminate/* ^13.0.

Changes

  • src/Exceptions/PythonEnvironmentException.php: remove missingDependencies().
  • tests/Unit/Exceptions/ExceptionHierarchyTest.php: remove the test that only existed to exercise the dead factory.
  • composer.json: orchestra/testbench is now ^11.0 (testbench 10.x requires laravel/framework ^12, which this package's ^13.0 requirement excludes).

Tests

  • vendor/bin/pint --test passes.
  • vendor/bin/pest --compact: 790 tests, 1300 assertions, 1 skipped (was 791; the removed test is the difference).
  • composer validate passes on the new constraint.

Closes #70


Generated by Claude Code

…chable testbench ^10 range

PythonEnvironmentException::missingDependencies() was never called from
src/; AetherInstallCommand reports missing Braket packages through console
output instead, so the factory and its only test are removed.

orchestra/testbench ^10.0 requires laravel/framework ^12 while this package
requires illuminate/* ^13.0, so Composer could never select that branch.
The constraint now states the one version that actually resolves.

Closes #70
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.

[cleanup] Remove dead code: unused missingDependencies() factory and unreachable testbench ^10 constraint

1 participant