Force composer to use a PHP version

If you have different versions of PHP running locally from production, it's advisable to fix your version of PHP. Otherwise you'll become out of sync and receive errors in production.

Add this to your 'composer.json' file, in the config 'block':

"platform": { "php": "5.6.4" }

Set the PHP version above to the lowest common denominator.

Source: https://stackoverflow.com/a/48185386/8098544


Explore our projects