Since the Acquia platform and PHP.net are enforcing applications be compatible with PHP 8.0 it is imperative that applications are upgraded before October 2022.
There are a few things that need to happen.
- Drupal 7 sites need to be using PHP 8.0.
- Drupal 8 sites must upgrade to Drupal 9.0 as all Drupal 8 sites are marked incompatible with PHP 8.0.
How do you get there?
In order to prepare for this upgrade it is important that developers thoroughly test their code is compatible with PHP 8.0. Code sniffers are great for this. Check out: PHPCompatibility
At the time of writing this article Drupal 7 requires Drush version 8.x. If you are running multiple projects you might need to switch between different Drush and PHP versions.
Automate Switching between PHP 7.4, Drush 8.x and PHP 8.1 and Drush 11.x
In order to run this script, download the following gist into a bash file. You can then use 7.4 as an argument to switch back and forth for versions. For example: