You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor #297 Use correct method to set the Request Format (janklan)
This PR was merged into the 2.x branch.
Discussion
----------
Use correct method to set the Request Format
| Q | A
| ------------- | ---
| Bug fix? | yes, docs
| New feature? | no
| Tickets | n/a
| License | MIT
The `Request::setFormat()` signature is `public function setFormat(?string $format, $mimeTypes)` in Symfony 5.4 and `public function setFormat(?string $format, string|array $mimeTypes)` in Symfony 6. Both versions require two arguments to be passed. The example appears to be calling an incorrect method. Shouldn't it call `Request::setRequestFormat()` instead?
Commits
-------
a947f40 Use correct method to set the Request Format
0 commit comments