Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for array of strings in ComposerIO #5370

Merged
merged 1 commit into from Apr 7, 2020

Conversation

schlessera
Copy link
Member

Composer seems to sometimes output arrays of strings through the ComposerIO interface, and this breaks our trim logic that only expects single strings.

This PR turns the logic into a loop over an array of strings instead to avoid throwing a notice.

See https://travis-ci.org/github/wp-cli/automated-tests/jobs/666134609#L2615

@schlessera schlessera requested a review from a team as a code owner Mar 24, 2020
@schlessera schlessera added this to the 2.5.0 milestone Mar 24, 2020
@schlessera schlessera merged commit 4909d14 into master Apr 7, 2020
@schlessera schlessera deleted the fix-composerio-array-notice branch Apr 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant