Skip to content

Commit 81b6b8f

Browse files
committed
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
1 parent 8d34524 commit 81b6b8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/valet.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -495,14 +495,14 @@
495495
*/
496496
$app->command('use [phpVersion] [--force]', function ($phpVersion, $force) {
497497
if (!$phpVersion) {
498-
$path = getcwd() . '/.valetrc';
498+
$path = getcwd() . '/.valetphprc';
499499
$linkedVersion = Brew::linkedPhp();
500500
if (!file_exists($path)) {
501501
return info(sprintf('Valet is using %s.', $linkedVersion));
502502
}
503503

504504
$phpVersion = trim(file_get_contents($path));
505-
info('Found \'' . $path . '\' with version: ' . $phpVersion);
505+
info('Found \'' . $path . '\' specifying version: ' . $phpVersion);
506506

507507
if ($linkedVersion == $phpVersion) {
508508
return info(sprintf('Valet is already using %s.', $linkedVersion));

0 commit comments

Comments
 (0)