mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Add missing return type
This commit is contained in:
parent
145dbacb78
commit
9ee5efaa2d
1 changed files with 1 additions and 1 deletions
|
@ -756,7 +756,7 @@ class CakeRequest implements ArrayAccess {
|
||||||
* {{{ CakeRequest::acceptLanguage('es-es'); }}}
|
* {{{ CakeRequest::acceptLanguage('es-es'); }}}
|
||||||
*
|
*
|
||||||
* @param string $language The language to test.
|
* @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) {
|
public static function acceptLanguage($language = null) {
|
||||||
$raw = self::_parseAcceptWithQualifier(self::header('Accept-Language'));
|
$raw = self::_parseAcceptWithQualifier(self::header('Accept-Language'));
|
||||||
|
|
Loading…
Reference in a new issue