Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jordanlgraham/e8c383aa14aebd9db6bf23cd4bbb6830 to your computer and use it in GitHub Desktop.
Save jordanlgraham/e8c383aa14aebd9db6bf23cd4bbb6830 to your computer and use it in GitHub Desktop.
Patch to Drush 8.x to solve incompatibility with Symfony 3.1 (see https://github.com/drush-ops/drush/issues/2474)
diff --git a/lib/Drush/Command/DrushInputAdapter.php b/lib/Drush/Command/DrushInputAdapter.php
index 29126f1..686555d 100644
--- a/lib/Drush/Command/DrushInputAdapter.php
+++ b/lib/Drush/Command/DrushInputAdapter.php
@@ -58,7 +58,7 @@ class DrushInputAdapter implements InputInterface {
/**
* {@inheritdoc}
*/
- public function hasParameterOption($values)
+ public function hasParameterOption($values, $onlyParams = false)
{
$values = (array) $values;
@@ -74,7 +74,7 @@ class DrushInputAdapter implements InputInterface {
/**
* {@inheritdoc}
*/
- public function getParameterOption($values, $default = false)
+ public function getParameterOption($values, $default = false, $onlyParams = false)
{
$values = (array) $values;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment