Skip to content

Conversation

@jderusse
Copy link
Member

@jderusse jderusse commented Dec 1, 2025

From AWS spec's properties we tried to normalize these name to camelCase.

For some cases, (when the name contains multiple consecutive UpperCases) where the generator is not able to generate the CamelCase value by itself, we maintain a list of (opinionated) exceptions telling that we shoiuld use the form "first char upper, rest lower". ie ETag become Etag.

We also maintain a list of "ignored" cases where multiple consecutive Upper cases are fine.
ie XOffset stays XOffset.

The issue, is: By mistake, we also convert the second list to the form "first char upper, rest lower".

This PR fix that.

This might not be a BC break, because PHP is not strict about case on methods.. But I wonder if it worth it...

@jderusse jderusse force-pushed the fix-camel branch 3 times, most recently from 3ba981c to 4f94d18 Compare December 1, 2025 13:10
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