mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Merge pull request #2282 from bcrowe/hotfix-returnType
Add missing return type
This commit is contained in:
commit
d7977c6812
1 changed files with 1 additions and 1 deletions
|
@ -756,7 +756,7 @@ class CakeRequest implements ArrayAccess {
|
|||
* {{{ CakeRequest::acceptLanguage('es-es'); }}}
|
||||
*
|
||||
* @param string $language The language to test.
|
||||
* @return If a $language is provided, a boolean. Otherwise the array of accepted languages.
|
||||
* @return mixed If a $language is provided, a boolean. Otherwise the array of accepted languages.
|
||||
*/
|
||||
public static function acceptLanguage($language = null) {
|
||||
$raw = self::_parseAcceptWithQualifier(self::header('Accept-Language'));
|
||||
|
|
Loading…
Add table
Reference in a new issue