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