config-extra
config-extra copied to clipboard
array_flip(): Can only flip STRING and INTEGER values! output.inc:184
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.