Skip to content
This repository has been archived by the owner on Apr 8, 2020. It is now read-only.

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

Open
gaelg opened this issue Oct 30, 2015 · 0 comments
Open

Comments

@gaelg
Copy link

gaelg commented Oct 30, 2015

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.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant