Skip to content

Commit

Permalink
minor #30535 Fix return type of Request::getRequestFormat (teohhanhui)
Browse files Browse the repository at this point in the history
This PR was merged into the 3.4 branch.

Discussion
----------

Fix return type of Request::getRequestFormat

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | N/A
| License       | MIT
| Doc PR        | N/A

Helps static analysis tools get the correct type.

Commits
-------

bd92349 Fix return type of Request::getRequestFormat
  • Loading branch information
nicolas-grekas committed Mar 13, 2019
2 parents 21d0197 + bd92349 commit 9f6c827
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/HttpFoundation/Request.php
Expand Up @@ -1462,7 +1462,7 @@ public function setFormat($format, $mimeTypes)
*
* @param string|null $default The default format
*
* @return string The request format
* @return string|null The request format
*/
public function getRequestFormat($default = 'html')
{
Expand Down

0 comments on commit 9f6c827

Please sign in to comment.