Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
Signed-off-by: Mior Muhammad Zaki <[email protected]>
  • Loading branch information
crynobone committed Oct 18, 2023
1 parent 6889c73 commit 8bfec42
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Console/DevToolCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
use Orchestra\Testbench\Foundation\Console\Actions\GeneratesFile;
use Symfony\Component\Console\Attribute\AsCommand;

use function Laravel\Prompts\select;
use function Orchestra\Testbench\laravel_version_compare;
use function Orchestra\Testbench\package_path;

#[AsCommand(name: 'workbench:devtool', description: 'Configure Workbench for package development')]
Expand Down Expand Up @@ -80,10 +82,9 @@ protected function copyTestbenchDotEnvFile(Filesystem $filesystem, string $worki
return;
}

$choice = $this->components->choice(
"Export '.env' file as?",
$choices,
);
$choice = laravel_version_compare('10.17', '>=')
? select("Export '.env' file as?", $choices)
: $this->components->choice("Export '.env' file as?", $choices);

if ($choice === 'Skip exporting .env') {
return;
Expand Down

0 comments on commit 8bfec42

Please sign in to comment.