Upgrade to PHP 7.4 with Homebrew on Mac

Brent has done a writeup on how to upgrade your Homebrew-installed PHP version to PHP 7.4. Since the php formula now contains that 7.4 version (instead of 7.3 before), all you need to do is make sure brew is up-to-date and then upgrade the php formula itself:

# make sure brew is up-to-date
brew update

# upgrade the php formula to its latest version
brew upgrade php

Upgrade to PHP 7.4 with Homebrew on Mac →

💁‍♂️ Don’t forget to upgrade Valet too, while you’re at it:

# stop current valet
valet stop

# update global packages
composer global update

# Make Valet do its housekeeping
valet install

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.