drupal-project icon indicating copy to clipboard operation
drupal-project copied to clipboard

Allow Dotenv implementation in load.environment.php to be backwards compatible.

Open jonpugh opened this issue 4 years ago • 0 comments

I am running an automated upgrade as a test site for some Ansible I am developing using this repo.

Upgrading a site in place hits a snag when the autoloader includes load.environment.php (when upgrading from Drupal 8 to 9 only).

You can see in these logs that the method isn't found: https://github.com/opendevshop/devshop.platform/runs/3693762573?check_suite_focus=true#step:9:3504

PHP Fatal error: Uncaught Error: Call to undefined method Dotenv\Dotenv::createUnsafeImmutable() in /var/platform/apps/composerupgrade/d8localcomputer/load.environment.php:16

I'm not quite sure if this should be merged into the main project or not, but at the very least, this branch will exist for testing purposes.

Feedback welcome.

jonpugh avatar Oct 15 '21 15:10 jonpugh