Skip to content

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

Description

@corgab

Summary

Two leftovers that do not break anything but cost attention on every read:

  1. PythonEnvironmentException::missingDependencies(string $details) is never called from src/. Its only reference is the unit test that asserts its message (tests/Unit/Exceptions/ExceptionHierarchyTest.php:66). AetherInstallCommand reports missing Braket dependencies through console output instead.
  2. composer.json allows orchestra/testbench: ^10.0|^11.0, but testbench 10.x requires laravel/framework ^12 while this package requires illuminate/* ^13.0. Composer can never select the ^10.0 branch, so the constraint documents a compatibility that does not exist.

Where

  • src/Exceptions/PythonEnvironmentException.php:23-26
  • tests/Unit/Exceptions/ExceptionHierarchyTest.php:66
  • composer.json:28

Why it is a problem

Dead factories on an exception class suggest a code path that a reader will look for and not find. A dead version range misleads anyone checking which Laravel versions the package supports. Neither is a defect, both are noise in a package that aims to be a reference implementation.

Suggested fix

Either wire missingDependencies() into AetherInstallCommand::checkDependencies() (throwing it in non-interactive mode when Braket is absent would give scripted installs a real failure signal) or delete it together with its test. Narrow the testbench constraint to ^11.0.

Severity: low

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions