🌐 US-Proxy
class="logged-out env-production page-responsive" style="word-wrap: break-word;" >
Skip to content

Allow for array of strings in ComposerIO - #5370

Merged
schlessera merged 1 commit into
masterfrom
fix-composerio-array-notice
Apr 7, 2020
Merged

Allow for array of strings in ComposerIO#5370
schlessera merged 1 commit into
masterfrom
fix-composerio-array-notice

Conversation

@schlessera

Copy link
Copy Markdown
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 March 24, 2020 16:20
@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 April 7, 2020 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant