downgrade from php 8 to 7.4 mac code example Example: brew switch php version brew unlink php@7.4 brew link php@7.3