Skip to content

Commit

Permalink
fix: FreshCommand constructor invoked with 1 parameter, 0 required
Browse files Browse the repository at this point in the history
  • Loading branch information
SRWieZ committed Dec 12, 2024
1 parent f009309 commit cc1cb87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/NativeServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit cc1cb87

Please sign in to comment.