Describe the bug
After https://github.com/acquia/blt/issues/4618 exposed issues with our new project setup, I wanted to test new project creation on PHP 8.1 on Drupal 10 to confirm if that is in fact working (and it's not).
To Reproduce
Steps to reproduce the behavior, ideally starting from a fresh install of BLT:
Run composer create-project acquia/drupal-recomcmended-project --no-interaction
Remove acquia cms starter kit, upgrade status, etc.
Up the php settings to 8.1
Add BLT
Expected behavior
It works
Detailed error output
11 package suggestions were added by new dependencies, use `composer suggest` to see details.
Package webmozart/path-util is abandoned, you should avoid using it. Use symfony/filesystem instead.
Generating autoload files
73 packages you are using are looking for funding.
Use the `composer fund` command to find out more!
Scaffolding files for acquia/drupal-recommended-project:
- Skip [profile-root]/.editorconfig: disabled
- Skip [profile-root]/.gitattributes: disabled
- Skip [profile-root]/.travis.yml: disabled
- Skip [profile-root]/acquia-pipelines.yml: disabled
- Skip [web-root]/sites/default/default.services.yml because it already exists and overwrite is false.
- Skip [web-root]/sites/default/default.settings.php because it already exists and overwrite is false.
Creating BLT template files...
> /Users/mike.madison/git/examples/drupal10/vendor/acquia/blt/bin/blt internal:add-to-project --ansi -n
PHP Fatal error: Declaration of Robo\Task\BaseTask::setLogger(Psr\Log\LoggerInterface $logger) must be compatible with Psr\Log\LoggerAwareInterface::setLogger(Psr\Log\LoggerInterface $logger): void in /Users/mike.madison/git/examples/drupal10/vendor/consolidation/robo/src/Common/TaskIO.php on line 30
Fatal error: Declaration of Robo\Task\BaseTask::setLogger(Psr\Log\LoggerInterface $logger) must be compatible with Psr\Log\LoggerAwareInterface::setLogger(Psr\Log\LoggerInterface $logger): void in /Users/mike.madison/git/examples/drupal10/vendor/consolidation/robo/src/Common/TaskIO.php on line 30
BLT installation failed! Please execute /Users/mike.madison/git/examples/drupal10/vendor/acquia/blt/bin/blt internal:add-to-project --ansi -n --verbose to debug the issue.
In Plugin.php line 165:
Installation aborted due to error
Describe the bug After https://github.com/acquia/blt/issues/4618 exposed issues with our new project setup, I wanted to test new project creation on PHP 8.1 on Drupal 10 to confirm if that is in fact working (and it's not).
To Reproduce Steps to reproduce the behavior, ideally starting from a fresh install of BLT:
composer create-project acquia/drupal-recomcmended-project --no-interaction
Expected behavior It works
Detailed error output