minor #30535 Fix return type of Request::getRequestFormat (teohhanhui)

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
-------

bd92349a3e Fix return type of Request::getRequestFormat
This commit is contained in:
Nicolas Grekas 2019-03-13 16:34:38 +01:00
commit 9f6c827678

View File

@ -1462,7 +1462,7 @@ class Request
*
* @param string|null $default The default format
*
* @return string The request format
* @return string|null The request format
*/
public function getRequestFormat($default = 'html')
{