1
0
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:
Chris Brown
2020-11-28 23:34:17 -05:00
parent be63541dd8
commit 6d2907961b

View File

@@ -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();