To use the PHP that Homebrew installed, you will first need to make sure that it is in your system's PATH.
To update PHP to version 7.4 on macOS Catalina using Homebrew, you can use the following steps: