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

Changes to rc file and rewording of info messages

Renamed .valetrc to .valetphprc to define it's purpose more
specifically and reworded info message when file with version is found
This commit is contained in:
Matt Stone
2021-08-07 00:48:50 +01:00
parent 8d34524ff5
commit 81b6b8fa12

View File

@@ -495,14 +495,14 @@
*/
$app->command('use [phpVersion] [--force]', function ($phpVersion, $force) {
if (!$phpVersion) {
$path = getcwd() . '/.valetrc';
$path = getcwd() . '/.valetphprc';
$linkedVersion = Brew::linkedPhp();
if (!file_exists($path)) {
return info(sprintf('Valet is using %s.', $linkedVersion));
}
$phpVersion = trim(file_get_contents($path));
info('Found \'' . $path . '\' with version: ' . $phpVersion);
info('Found \'' . $path . '\' specifying version: ' . $phpVersion);
if ($linkedVersion == $phpVersion) {
return info(sprintf('Valet is already using %s.', $linkedVersion));