Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Impossible to switch back to PHP 8.0 from 8.1 #679

Closed
brendt opened this issue Nov 26, 2021 · 4 comments
Closed

Impossible to switch back to PHP 8.0 from 8.1 #679

brendt opened this issue Nov 26, 2021 · 4 comments
Assignees
Labels
🍻needs-brew-update Running brew update would solve the issue.

Comments

@brendt
Copy link

brendt commented Nov 26, 2021

This is my current situation:

~ php -v
PHP 8.1.0 (cli)

Trying to link 8.0 instead:

~ brew link --overwrite --force php@8.0
Warning: Already linked: /opt/homebrew/Cellar/php/8.1.0_1
To relink, run:
  brew unlink php && brew link php

Next I try to run this:

~ brew unlink php
Unlinking /opt/homebrew/Cellar/php/8.1.0_1... 24 symlinks removed.

~ brew link --overwrite --force php@8.0
Linking /opt/homebrew/Cellar/php/8.1.0_1... 24 symlinks created.

But php -v still lists 8.1:

~ php -v
PHP 8.1.0 (cli)
@brendt brendt added the bug Something isn't working label Nov 26, 2021
@shivammathur
Copy link
Owner

@brendt
This is a temporary issue till homebrew/core updates their PHP formulae as well.
Till then, prefix the formula name with the tap's name shivammathur/php/php@8.0

brew link --overwrite --force shivammathur/php/php@8.0

@brendt
Copy link
Author

brendt commented Nov 26, 2021

Gotcha, thanks for clarifying!

@brendt
Copy link
Author

brendt commented Nov 26, 2021

FYI it seems like Laravel valet also breaks because of this, I guess it's just waiting for brew at this point…

@shivammathur
Copy link
Owner

@brendt @nicoverbruggen

Please run brew update. This should be fixed now.

@shivammathur shivammathur added 🍻needs-brew-update Running brew update would solve the issue. and removed bug Something isn't working labels Nov 29, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
🍻needs-brew-update Running brew update would solve the issue.
Projects
None yet
Development

No branches or pull requests

2 participants