mirror of
https://github.com/laravel/valet.git
synced 2026-02-05 00:20:08 +01:00
Make [phpVersion] parameter optional for "valet use" command
This commit is contained in:
@@ -462,7 +462,11 @@
|
||||
/**
|
||||
* Allow the user to change the version of php valet uses
|
||||
*/
|
||||
$app->command('use phpVersion', function ($phpVersion) {
|
||||
$app->command('use [phpVersion]', function ($phpVersion) {
|
||||
if (!$phpVersion) {
|
||||
return info('Valet is using ' . Brew::linkedPhp());
|
||||
}
|
||||
|
||||
PhpFpm::validateRequestedVersion($phpVersion);
|
||||
|
||||
PhpFpm::stopRunning();
|
||||
|
||||
Reference in New Issue
Block a user