From cc1cb879145df52c11751f2370471a298f25b0a2 Mon Sep 17 00:00:00 2001 From: Eser DENIZ Date: Thu, 12 Dec 2024 10:57:46 +0100 Subject: [PATCH] fix: FreshCommand constructor invoked with 1 parameter, 0 required --- src/NativeServiceProvider.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NativeServiceProvider.php b/src/NativeServiceProvider.php index 11da0cf..dab1a3b 100644 --- a/src/NativeServiceProvider.php +++ b/src/NativeServiceProvider.php @@ -46,8 +46,8 @@ public function packageRegistered() { $this->mergeConfigFrom($this->package->basePath('/../config/nativephp-internal.php'), 'nativephp-internal'); - $this->app->singleton(FreshCommand::class, function ($app) { - return new FreshCommand($app['migrator']); + $this->app->singleton(FreshCommand::class, function () { + return new FreshCommand; }); $this->app->singleton(MigrateCommand::class, function ($app) {