8

I have a Mac Air with Ventura OS. I just installed Brew and after that I can't upgrade PHP anymore. I get the following error: Error: php@7.4 has been disabled because it is a versioned formula! How can I solve it? New to MacOS and Brew. Thanks Fabio

No clue what to do at this point.

Fabio Parodi
  • 91
  • 1
  • 2
  • Compare: [Error: php@7.3 has been disabled because it is a versioned formula](https://stackoverflow.com/q/70417377/367456) – hakre Dec 03 '22 at 02:27

1 Answers1

27

The message tells you that PHP 7.4 is outdated. You can either install PHP8

brew install php

or link a 3rd party repository and install 7.4 from there.

For example:

brew tap shivammathur/php
brew install shivammathur/php/php@7.4
brew link php@7.4
gtom
  • 391
  • 1
  • 4