pantheon-systems / localdev-issues

Issue tracking for Pantheon localdev
6 stars 2 forks source link

PHP Version defaults to 5.6 #101

Closed WeirdDNA closed 3 years ago

WeirdDNA commented 3 years ago

I've created a brand new Drupal 8 sandbox site on Pantheon. (Feb 10). Initialized that site with default Drupal configuration.
Updated Localdev to the latest stable release: 1.0.1 Pulled that new site down via Localdev's init procedure. While the site runs on PHP 7+ on Pantheon's servers, localdev/lando defaults to php 5.6 for this new site. (Other projects are fine on 7)

After encountering this error, I've updated the .lando.yml file and the pantheon.yml file to include php: 7.4 and php_version: 7.4 respectively, stopping and starting the server does not pick up the change, and it's still attempting to serve via 5.6 within Localdev/Pantheon.

WeirdDNA commented 3 years ago

Fixed via forced rebuild, but... come on.

interactiveRob commented 2 years ago

I second this. Still an issue, the default should not be PHP 5.6. Any sites with PHP 7+ features throw fatals and need a rebuild.

interactiveRob commented 2 years ago

@pantheon-jira Please re-open this issue and provide a fix.