Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
crynobone authored Jan 10, 2024
1 parent c10e7bf commit ba24c80
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions src/Foundation/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
namespace Orchestra\Testbench\Foundation;

use Illuminate\Console\Application as Artisan;
use Illuminate\Foundation\Bootstrap\HandleExceptions as LaravelHandleExceptions;
use Illuminate\Foundation\Bootstrap\HandleExceptions;
use Illuminate\Foundation\Bootstrap\LoadEnvironmentVariables;
use Illuminate\Foundation\Configuration\ApplicationBuilder;
use Illuminate\Foundation\Console\AboutCommand;
Expand All @@ -13,7 +13,6 @@
use Illuminate\Support\Arr;
use Illuminate\Support\Sleep;
use Illuminate\View\Component;
use Orchestra\Testbench\Bootstrap\HandleExceptions as TestbenchHandleExceptions;
use Orchestra\Testbench\Concerns\CreatesApplication;
use Orchestra\Testbench\Contracts\Config as ConfigContract;
use Orchestra\Testbench\Workbench\Workbench;
Expand Down Expand Up @@ -175,14 +174,7 @@ public static function flushState(): void
Component::forgetComponentsResolver();
Component::forgetFactory();
ConvertEmptyStringsToNull::flushState();

if (method_exists(LaravelHandleExceptions::class, 'flushState')) {
LaravelHandleExceptions::flushState();
} else {
// @TODO to be removed after https://github.com/laravel/framework/pull/49622
TestbenchHandleExceptions::forgetApp();
}

HandleExceptions::flushState();
Queue::createPayloadUsing(null);
Sleep::fake(false);
AboutCommand::flushState();
Expand Down

0 comments on commit ba24c80

Please sign in to comment.