Skip to content
Snippets Groups Projects

Issue #3483437: Fixes fatal error on Drush 13.

1 file
+ 10
1
Compare changes
  • Side-by-side
  • Inline
@@ -100,7 +100,16 @@ class MarkdownCommands extends DrushCommands implements ContainerInjectionInterf
public function __construct(FileSystemInterface $fileSystem, LoggerInterface $logger) {
parent::__construct();
$this->fileSystem = $fileSystem;
$this->logger = $logger;
// Don't replace Drush's logger because it'll cause a fatal error on Drush
// 13 and newer.
//
// @see https://www.drupal.org/project/markdown/issues/3483437
//
// @see https://github.com/drush-ops/drush/pull/5022
if (!method_exists($this, 'logger')) {
$this->logger = $logger;
}
if (!static::$shutdownRegistered) {
drupal_register_shutdown_function(function () {
Loading