I've installed an updated version of PHP 7.4 using homebrew.
But still, when i run php -v on the command line, i get :
WARNING: PHP is not recommended
PHP is included in macOS for compatibility with legacy software.
Future versions of macOS will not include PHP.
PHP 7.3.24-(to be removed in future macOS) (cli) (built: Dec 21 2020 21:33:25) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.24, Copyright (c) 1998-2018 Zend Technologies
As you can see, it's still using the one that comes with Mac Os.
When i run phpinfo from a php script, i can see it's using the correct one, as i configured on Apache, as shown below.
What i need to do to make the command line use the brew installed version of PHP ?
