diff --git a/cli/valet.php b/cli/valet.php index 05fb4ca..0a00a9b 100755 --- a/cli/valet.php +++ b/cli/valet.php @@ -540,8 +540,7 @@ $site = basename(getcwd()); } - if (! $phpVersion) { - $phpVersion = Site::phpRcVersion($site); + if (is_null($phpVersion) && $phpVersion = Site::phpRcVersion($site)) { info("Found '{$site}/.valetphprc' specifying version: {$phpVersion}"); }