Since we now always install dependencies via composer create-project, it is possible for DDEV and the host machine to have dependency conflicts due to different PHP platform versions.
To get around this, it's best for us to explicitly tell Composer which PHP version it should consider when resolving dependencies. Let's make that PHP 8.1, which is the minimum version required by Drupal 10.
Since we now always install dependencies via
composer create-project
, it is possible for DDEV and the host machine to have dependency conflicts due to different PHP platform versions.To get around this, it's best for us to explicitly tell Composer which PHP version it should consider when resolving dependencies. Let's make that PHP 8.1, which is the minimum version required by Drupal 10.