A machine-readable guide to this site for AI agents and language models is available at/llms.txt(https://dev.acquia.com/llms.txt on the production site).
PHP version mismatch with Drush | Cloud Platform | Acquia Product Documentation
Cloud Platform
PHP version mismatch with Drush
PHP version mismatch with Drush
Date Published: November 23, 2026
Issue
The following error can occur when you run a Drush command in your codebase:
$ drush status
Unable to load class Drush\Sql\Sql [error]
Error: Call to undefined method Symfony\Component\HttpFoundation\Response::create() in Drush\Boot\DrupalBoot8->terminate() (line 214 of /usr/local/drush8/vendor/drush/drush/lib/Drush/Boot/DrupalBoot8.php).
Drush command terminated abnormally due to an unrecoverable error. [error]
Resolution
This error occurs due to a version mismatch between Drush and PHP. To resolve this issue, install the correct version of Drush for the PHP version configured on your environment. The command-line PHP version must match the configured version of the environment. For PHP 8.2 or 8.3, run the following command to install Drush 12.x or later through Composer in your codebase: