Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
markdown
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
markdown
Merge requests
!35
Issue
#3483437
: Fixes fatal error on Drush 13.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Issue
#3483437
: Fixes fatal error on Drush 13.
issue/markdown-3483437:3483437-drush-13-fatal-error
into
3.0.x
Overview
0
Commits
1
Pipelines
0
Changes
1
Open
Malcolm Young
requested to merge
issue/markdown-3483437:3483437-drush-13-fatal-error
into
3.0.x
6 months ago
Overview
0
Commits
1
Pipelines
0
Changes
1
Expand
Closes
#3483437
0
0
Merge request reports
Compare
3.0.x
3.0.x (HEAD)
and
latest version
latest version
de1e36b6
1 commit,
6 months ago
1 file
+
10
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
src/Commands/MarkdownCommands.php
+
10
−
1
Options
@@ -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