Skip to content

Commit e7cd9c6

Browse files
committed
Only run exception handler in native context
1 parent d728712 commit e7cd9c6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/NativeServiceProvider.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ public function packageRegistered()
4747
return new MigrateCommand($app['migrator'], $app['events']);
4848
});
4949

50-
$this->app->singleton(
51-
\Illuminate\Contracts\Debug\ExceptionHandler::class,
52-
Handler::class
53-
);
54-
5550
if (config('nativephp-internal.running')) {
51+
$this->app->singleton(
52+
\Illuminate\Contracts\Debug\ExceptionHandler::class,
53+
Handler::class
54+
);
55+
5656
Application::starting(function ($app) {
5757
$app->resolveCommands([
5858
LoadStartupConfigurationCommand::class,

0 commit comments

Comments
 (0)