There was an error while loading. Please reload this page.
2 parents 51c0ef5 + 0f8ca45 commit 914e8e5Copy full SHA for 914e8e5
1 file changed
src/SelfDiagnosisCommand.php
@@ -27,7 +27,7 @@ public function handle()
27
{
28
$this->runChecks(config('self-diagnosis.checks', []), trans('self-diagnosis::commands.self_diagnosis.common_checks'));
29
30
- $environment = $this->argument('environment', app()->environment());
+ $environment = $this->argument('environment') ?: app()->environment();
31
$environmentChecks = config('self-diagnosis.environment_checks.' . $environment, []);
32
33
if (empty($environmentChecks) && array_key_exists($environment, config('self-diagnosis.environment_aliases'))) {
0 commit comments