switch-php: Stuck on php@7.1 after attempting to switch to php@7.2

I love the idea for this but I can’t seem to get it to work correctly. I originally had only PHP 7.1 installed with Homebrew and I use Valet… To test the script I went ahead and just now installed 7.2 with Homebrew then tried to switch:

> switch-php 72 -v -m 512M                                                                               

 👀  Verifying that Valet is installed...
Password:
 🔍  Checking which PHP versions are installed...
 🛑  Stopping Valet...
 ==>  Stopping nginx...
 ✅  Valet stopped
 🔀  Switching to php72...
 ==>  Stopping php71...
 ==>  Unlinking php71...
 ==>  Stopping php72...
 ==>  Unlinking php72...
 ==>  Linking php72...
 ==>  Starting php72...
 ✅  PHP switched
 ⚙  Starting Valet...
 ==>  Starting nginx...
 ==>  Starting dnsmasq...
 ✅  Valet started
 🎛  Configuring PHP...
 ==>  Setting PHP memory to 512M...
 ==>  Restarting PHP...
 ✅  PHP configured

You are now using PHP 7.1.14

Bug? Did I maybe not install 7.2 correctly? I installed 7.2 with brew install php72 php72-igbinary php72-imagick php72-memcached

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 24 (9 by maintainers)

Most upvoted comments

Interesting… ok well I guess I’ll go ahead and close this since it seems to be resolved. Thanks again!