- Issue created by @hussainweb
-
hussainweb →
committed 0cda6c4b on 2.x
Issue #3394443 by hussainweb: Drush fails on Drupal 10
-
hussainweb →
committed 0cda6c4b on 2.x
- Status changed to Fixed
about 1 year ago 10:28pm 16 October 2023 - 🇨🇦Canada hussainweb
Just removing the $logger property on the class is sufficient. That property is made available by LoggerAwareTrait anyway and the error was due to different types (it needed to be `?LoggerInterface` whereas it was missing and assumed `mixed` in the module's class).
We can still set to the property in the constructor because LoggerInterface is compatible with Drupal's `\Drupal\Core\Logger\LoggerChannelInterface`.
Automatically closed - issue fixed for 2 weeks with no activity.