diff --git a/src/EnvironmentSetCommand.php b/src/EnvironmentSetCommand.php index 4a04fca..2c9179f 100644 --- a/src/EnvironmentSetCommand.php +++ b/src/EnvironmentSetCommand.php @@ -46,7 +46,7 @@ public function handle(): void ); // Use system env file path if the argument env file path is not provided. - $envFilePath = $envFilePath ?? App::environmentFilePath(); + $envFilePath = $envFilePath ? $envFilePath : App::environmentFilePath(); $this->info("The following environment file is used: '" . $envFilePath . "'"); } catch (InvalidArgumentException $e) { $this->error($e->getMessage());