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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user