Skip to content

fix(symfony): allow to merge array with string in global defaults #7037

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

Merged
merged 4 commits into from
Mar 21, 2025

Conversation

Crovitche-1623
Copy link
Contributor

@Crovitche-1623 Crovitche-1623 commented Mar 21, 2025

fix #7035

This PR allows to merge array with string defined in the configuration file.

This is useful for example when we have a default format (string) that need to be merged with formats that are set as array in operation (formats: ['json', 'xml']).

@Crovitche-1623 Crovitche-1623 changed the title fix(symfony): merge an array and not a string fix(symfony): merge the default string format as an array Mar 21, 2025
Co-authored-by: Antoine Bluchet <soyuka@users.noreply.github.com>
@Crovitche-1623 Crovitche-1623 changed the title fix(symfony): merge the default string format as an array fix(symfony): allow to merge array with string in global defaults Mar 21, 2025
@soyuka soyuka merged commit bb83e9a into api-platform:4.0 Mar 21, 2025
57 of 59 checks passed
@soyuka
Copy link
Member

soyuka commented Mar 21, 2025

Thanks!

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.

None yet

2 participants