config-extra icon indicating copy to clipboard operation
config-extra copied to clipboard

array_flip(): Can only flip STRING and INTEGER values! output.inc:184

Open gaelg opened this issue 9 years ago • 0 comments

The bug comes from _drush_cme_get_initial_vcs_state():

$uncommitted_changes = drush_shell_exec_output(); //returns an array
if (!empty($uncommitted_changes)) {
  return drush_set_error('...', dt("... !changes", array('!changes' => $uncommitted_changes))); // a string should be passed, not an array
}

Easy fix:

  return drush_set_error('...', dt("... !changes", array('!changes' => implode('\n', $uncommitted_changes))));

I don't submit a patch or pull request because I'm not very used to GitHub.

gaelg avatar Oct 30 '15 15:10 gaelg