So I've just installed drush 11.2.0 with Drupal 9.4.6 and the first time I executed
drush si, I got this error.
PHP Fatal error: Declaration of Drush\Application::setLogger(Psr\Log\LoggerInterface $logger) must be compatible with Psr\Log\LoggerAwareInterface::setLogger(Psr\Log\LoggerInterface $logger): void in /app/vendor/drush/drush/src/Application.php on line 22
What can I do to fix this issue?
If it matters, I am using Lando.
lando composer require drush/drushand
lando drush si ....
usestatement. Can you confirm that src/Application.php looks as it should, which is: github.com/drush-ops/drush/blob/11.2.0/src/Application.php