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

Fixed array state for symfony/http-foundation >= 6.0 #2003

Merged
merged 1 commit into from
Jun 22, 2024

Conversation

ozahorulia
Copy link
Contributor

@ozahorulia ozahorulia commented Jun 4, 2024

Once upgraded my project to symfony 6.4 (particularly the http-foundation component), I've noticed that OAuthUtils started to throw exception if "state" parameter is passed as an array (this is the way we do it in my project atm). According to the http-foundation changelog:

Retrieving non-scalar values using InputBag::get() will throw BadRequestException (use InputBad::all() instead to retrieve an array)

This behavior has been deprecated since v5.1 and removed in 6.0.

I've also added symfony/http-foundation as a direct dependency to the composer.json. I was not sure about it, but it's obvious that this bundle relates on the Request class from the http-foundation, but it wasn't present in composer.json for some reason.

@ozahorulia ozahorulia force-pushed the symfony-http-foundation-6-fix branch from fb6b7cb to 4f088c0 Compare June 4, 2024 17:07
@ozahorulia
Copy link
Contributor Author

ozahorulia commented Jun 4, 2024

Please, re-trigger the CI, I just forgot to commit everything from the first attempt.

@ozahorulia
Copy link
Contributor Author

Hmm, cs-fixer fails, but looks like it comes from master. Should it ignore that?

@stloyd stloyd merged commit c30b61e into hwi:master Jun 22, 2024
8 of 9 checks passed
@ozahorulia
Copy link
Contributor Author

@stloyd thanks for merging! Is there any ETA on creating a release?

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.

2 participants