php -v
PHP 8.2.1 (cli) (built: Jan 12 2023 19:14:53) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.1, Copyright (c) Zend Technologies
with Zend OPcache v8.2.1, Copyright (c), by Zend Technologies
but in my .zhrc its 7.4
cat ~/.zhrc
export PATH=”$PATH:/Users/alamsyahrasyid/development/flutter/bin”
export PATH=”$PATH:`pwd`/flutter/bin”
export PATH=”/usr/local/opt/[email protected]/bin:$PATH”
export PATH=”/usr/local/opt/[email protected]/sbin:$PATH”
quick fix
source ~/.zhrc
php -v
PHP 7.4.33 (cli) (built: Jan 21 2023 07:11:51) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.33, Copyright (c), by Zend Technologies