From e71906616c09c459eb3cfd1b7656d73beea77686 Mon Sep 17 00:00:00 2001 From: Chris Brown Date: Sat, 30 Nov 2019 16:07:38 -0500 Subject: [PATCH] Add comment to consider running composer global update When switching to older PHP versions there may be a composer package dependency conflict. This PR adds a note to consider running `composer global update` to update those dependencies. It's only a comment since not all changes in PHP version will require running the update. Fixes #822 --- cli/valet.php | 1 + 1 file changed, 1 insertion(+) diff --git a/cli/valet.php b/cli/valet.php index 57402cce0..135f09ed1 100755 --- a/cli/valet.php +++ b/cli/valet.php @@ -298,6 +298,7 @@ Nginx::restart(); info(sprintf('Valet is now using %s.', $newVersion)); + info('Note that you might need to run composer global update if your PHP version change affects the dependencies of global packages required by composer.'); })->descriptions('Change the version of PHP used by valet', [ 'phpVersion' => 'The PHP version you want to use, e.g php@7.2', ]);