mirror of
https://github.com/laravel/valet.git
synced 2026-02-06 00:40:06 +01:00
Require passing a version number to isolate command
This commit is contained in:
10
cli/app.php
10
cli/app.php
@@ -563,8 +563,14 @@ function (ConsoleCommandEvent $event) {
|
|||||||
$site = basename(getcwd());
|
$site = basename(getcwd());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_null($phpVersion) && $phpVersion = Site::phpRcVersion($site)) {
|
if (is_null($phpVersion)) {
|
||||||
info("Found '{$site}/.valetphprc' specifying version: {$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);
|
PhpFpm::isolateDirectory($site, $phpVersion);
|
||||||
|
|||||||
Reference in New Issue
Block a user