Skip to content
This repository has been archived by the owner on Aug 19, 2023. It is now read-only.

Drush 11.3.2 on PHP 8.1.11 #101

Open
SirClickALot opened this issue Nov 23, 2022 · 0 comments
Open

Drush 11.3.2 on PHP 8.1.11 #101

SirClickALot opened this issue Nov 23, 2022 · 0 comments

Comments

@SirClickALot
Copy link

I am working locally on a Drupal 9.4.8 site and I am using the latest drush-launcher phar so that I am able to issue commands when working on that site without having to use the prefix vendor/bin/drush before each commmand.

All is working fine it seems except that after issuing commands such as drush cr, I always see the following to two postscript lines...

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 C:\Users\nick\Sites\bit-by-bit.org\public_html\vendor\psr\log\Psr\Log\LoggerAwareTrait.php on line 22

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 C:\Users\nick\Sites\bit-by-bit.org\public_html\vendor\psr\log\Psr\Log\LoggerAwareTrait.php on line 22

When I issuse the fully-qualified command from within the site codebase folder: vendor/bin/drush cr, I don't not see those extra lines.

Can anyone explain to me what's causing that please?

Thank you

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant