Skip to content

Fix PHP non-conformance when parsing JSON non-array into repeated fields.#28800

Draft
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_952923366
Draft

Fix PHP non-conformance when parsing JSON non-array into repeated fields.#28800
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_952923366

Conversation

@copybara-service

Copy link
Copy Markdown

Fix PHP non-conformance when parsing JSON non-array into repeated fields.

We've been unintentionally allowing single value to parse successfully
for a repeated field in PHP. i.e. a payload of foo: "bar" instead of
foo: ["bar"].

This commit fixes this behavior and brings our PHP implementation in
line with the behavior of our other languages.

…lds.

We've been unintentionally allowing single value to parse successfully
for a repeated field in PHP. i.e. a payload of `foo: "bar"` instead of
`foo: ["bar"]`.

This commit fixes this behavior and brings our PHP implementation in
line with the behavior of our other languages.

PiperOrigin-RevId: 952923366
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant