Skip to content

Commit

Permalink
fix for default command environment
Browse files Browse the repository at this point in the history
  • Loading branch information
kbond committed Aug 28, 2019
1 parent 803bed6 commit 0f8ca45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SelfDiagnosisCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function handle()
{
$this->runChecks(config('self-diagnosis.checks', []), trans('self-diagnosis::commands.self_diagnosis.common_checks'));

$environment = $this->argument('environment', app()->environment());
$environment = $this->argument('environment') ?: app()->environment();
$environmentChecks = config('self-diagnosis.environment_checks.' . $environment, []);

if (empty($environmentChecks) && array_key_exists($environment, config('self-diagnosis.environment_aliases'))) {
Expand Down

0 comments on commit 0f8ca45

Please sign in to comment.