Skip to content

Commit

Permalink
Merge pull request #86 from kbond/env-fix
Browse files Browse the repository at this point in the history
Fix for default command environment
  • Loading branch information
mpociot authored Mar 11, 2020
2 parents 51c0ef5 + 0f8ca45 commit 914e8e5
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 914e8e5

Please sign in to comment.