to update the php version in composer code example
Example 1: check composer php version
composer -vvv about
Example 2: update composer php version
php7.3 -f /usr/local/bin/composer update
composer -vvv about
php7.3 -f /usr/local/bin/composer update