switch-php: Doesn't seem to be working when switching from the latest version of PHP

Hey there!

When I try and switch from php 7.4.5, nothing seems to happen.

brett~/Sites$ switch-php 7.1
Password:
Valet stopped ✔
PHP switched ✔
Valet started ✔

You are now using PHP 7.4.5

I’d expect PHP 7.1 to be in use after running this.

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Comments: 15 (1 by maintainers)

Most upvoted comments

@eleftrik aha I know exactly what’s happening to you - I’ll push a fix here in a bit.

@moorebrett0 not sure why yours is doing that… 🤔 Can you try running switch-php in verbose mode and sharing that here? Maybe also give me the output of brew services list while you’re at it…