Skip to content

Commit

Permalink
Fixing the registerCommands() method
Browse files Browse the repository at this point in the history
  • Loading branch information
arcanedev-maroc committed Oct 2, 2019
1 parent f4aa28e commit cf731be
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Providers/ServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ protected function registerConsoleServiceProvider($provider, $force = false)
}

/**
* Register commands service provider.
* Register the package's custom Artisan commands when running in console.
*
* @param \Illuminate\Support\ServiceProvider|string $provider
* @param array $commands
*/
protected function registerCommands($provider)
protected function registerCommands(array $commands)
{
if ($this->app->runningInConsole())
$this->app->register($provider);
$this->commands($commands);
}

/**
Expand Down

0 comments on commit cf731be

Please sign in to comment.