Skip to content

Upgrading orchestra/testbench 10 to 11

Breakingv10.12.0 → v11.3.0Breaking5Platform2New4Changed9Fixed2Other2

BreakingUpgrade verdict

5 breaking changes and 2 platform requirement changes.

  • A helper class that was already marked deprecated is gone, so code using it will fail.
  • A console helper trait that was already marked deprecated is gone, so code using it will fail.
  • A method that was already marked deprecated is gone, so code calling it will fail.
  • A helper function that was already marked deprecated is gone, so code calling it will fail.
Top 5 of 7 that need code or config changes

PHP requirement changed in v11.0.0: ^8.2 → ^8.3.

Breaking5
Removes the deprecated Orchestra\Testbench\Foundation\Env class.
Orchestra\Testbench\Foundation\Env
Removes the deprecated HandleTerminatingConsole trait.
Orchestra\Testbench\Foundation\Console\Concerns\HandleTerminatingConsole
Removes the deprecated Action::pathLocation() method.
Orchestra\Testbench\Foundation\Console\Actions\Action::pathLocation()
Removes the deprecated laravel_migration_path() function.
Orchestra\Testbench\laravel_migration_path()
Removes support for the deprecated annotations @define-env, @environment-setup, @define-db and @define-route.
@define-env@environment-setup@define-db@define-route
Platform2
Adds experimental support for PHP 8.6.
Requires symfony/polyfill-php84 for the Pdo\Mysql class on PHP 8.3 and below.
symfony/polyfill-php84Pdo\Mysql