Merge pull request #2282 from bcrowe/hotfix-returnType

Add missing return type
This commit is contained in:
Mark Story 2013-11-07 20:01:07 -08:00
commit d7977c6812

View file

@ -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'));