Reputation: 61
I've been having issues with my webapp ever since heroku upgraded to PHP 7.2.0. How can I downgrade to a 7.0.* version of PHP on heroku?
Upvotes: 0
Views: 1564
Reputation: 191
A little gotcha, make sure you commit in the composer.lock file after setting the php version in your composer.json:
composer update
Upvotes: 1
Reputation: 137071
Heroku currently supports PHP 5.6, 7.0, 7.1 and 7.2.
You can select your runtime in your composer.json
file, e.g.
{
"require": {
"php": "^7.0"
}
}
to select the latest version of PHP 7.0.
Upvotes: 2