drush-ops / drush-launcher

A small wrapper around Drush for your global $PATH.
GNU General Public License v2.0
237 stars 50 forks source link

Drush 11.3.2 on PHP 8.1.11 #101

Open SirClickALot opened 1 year ago

SirClickALot commented 1 year ago

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