run composer with php 7.1 instead of php 5.6
Recently we upgrade to the next version of laravel framework, this new versions required php 7.+, we already switch to this php version through cpanel, but the sorprice was when try to run composer command. it comes predefined to use php 5.6 cli.
when i try to deply the proyect, composer gives me a error about php version.
So i need some help to change de default path of php version to run composer, i make and alias to force console commands to run php 7.1, and it work well with custom scripts, but not with composer.
I hope you can help me, thanks for your time
when i try to deply the proyect, composer gives me a error about php version.
So i need some help to change de default path of php version to run composer, i make and alias to force console commands to run php 7.1, and it work well with custom scripts, but not with composer.
I hope you can help me, thanks for your time