1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-05 16:40:05 +01:00

Require passing a version number to isolate command

This commit is contained in:
Matt Stauffer
2022-12-20 16:09:38 -05:00
parent cc23311377
commit 12172f4a5a

View File

@@ -563,8 +563,14 @@ function (ConsoleCommandEvent $event) {
$site = basename(getcwd());
}
if (is_null($phpVersion) && $phpVersion = Site::phpRcVersion($site)) {
if (is_null($phpVersion)) {
if ($phpVersion = Site::phpRcVersion($site)) {
info("Found '{$site}/.valetphprc' specifying version: {$phpVersion}");
} else {
info("\nPlease provide a version number. E.g.:");
info("valet isolate php@8.2");
exit;
}
}
PhpFpm::isolateDirectory($site, $phpVersion);