Skip to content

Commit

Permalink
Fix $this being used in a static context in Drush.php. (#3994)
Browse files Browse the repository at this point in the history
  • Loading branch information
echernyavskiy authored and greg-1-anderson committed Mar 13, 2019
1 parent 841e1fb commit 4312842
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/Drush/Drush.php
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ public static function output()
*/
public static function drush(SiteAliasInterface $siteAlias, $command, $args = [], $options = [], $options_double_dash = [])
{
return $this->processManager()->drush($siteAlias, $command, $args, $options, $options_double_dash);
return static::processManager()->drush($siteAlias, $command, $args, $options, $options_double_dash);
}

/**
Expand All @@ -297,7 +297,7 @@ public static function drush(SiteAliasInterface $siteAlias, $command, $args = []
*/
public static function siteProcess(SiteAliasInterface $siteAlias, $args = [], $options = [], $options_double_dash = [])
{
return $this->processManager()->siteProcess($siteAlias, $args, $options, $options_double_dash);
return static::processManager()->siteProcess($siteAlias, $args, $options, $options_double_dash);
}

/**
Expand All @@ -320,7 +320,7 @@ public static function siteProcess(SiteAliasInterface $siteAlias, $args = [], $o
*/
public static function process($commandline, $cwd = null, array $env = null, $input = null, $timeout = 60)
{
return $this->processManager()->process($commandline, $cwd, $env, $input, $timeout);
return static::processManager()->process($commandline, $cwd, $env, $input, $timeout);
}

/**
Expand All @@ -337,7 +337,7 @@ public static function process($commandline, $cwd = null, array $env = null, $in
*/
public static function shell($command, $cwd = null, array $env = null, $input = null, $timeout = 60)
{
return $this->processManager()->shell($command, $cwd, $env, $input, $timeout);
return static::processManager()->shell($command, $cwd, $env, $input, $timeout);
}

/**
Expand Down

0 comments on commit 4312842

Please sign in to comment.