Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.
This repository was 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

Description

@gaelg

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions