i have installed 2 php versions on my PC here, i run this command
composer require kreait/firebase-php ^4.18
but that show error message :
[InvalidArgumentException]
Package kreait/firebase-php at version ^4.18 has a PHP requirement incompat
ible with your PHP version (5.6.20)
when i run phpinfo it's said php7.2 but when i check php -v it said php5.6 anyone can help me out and why it's happen ?
SOLVED
by adding this code in my composer.json :