What should I do when encountering a PHP version error during code build?
Description
Build stage | Job | Error message | Category | Responsibility |
---|
Build Drupal | Build Code | Your lock file does not contain a compatible set of packages. Please run composer update.
symfony/string vx.x.x requires php >=8.2 -> your php version (8.1) does not satisfy that requirement.
| Application | Customer |
Potential cause
The PHP version of the project is not set correctly.
Solution
Add the PHP_VERSION
environment variable to your project through the UI, and set its value to the PHP version that your project uses. This value accepts major and minor versions only, for example, 8.2. For more information, see Modifying environment variables.
Did not find what you were looking for?
If this content did not answer your questions, try searching or contacting our support team for further assistance.