X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FWebRequest.php;h=f3edebc6b689dde175ec088c553701988f5bb04f;hb=f8a777b9035b351e90bb89edf5be300317a2ee83;hp=b499d86d392c84ebab73f188ae82cb3ce02a4577;hpb=966e34619bef0b2dd1e275565829ed2030edd564;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/WebRequest.php b/includes/WebRequest.php index b499d86d39..f3edebc6b6 100644 --- a/includes/WebRequest.php +++ b/includes/WebRequest.php @@ -484,7 +484,7 @@ class WebRequest { * If no source and no default, returns null. * * @param string $name - * @param array $default Optional default (or null) + * @param array|null $default Optional default (or null) * @return array|null */ public function getArray( $name, $default = null ) { @@ -503,7 +503,7 @@ class WebRequest { * If an array is returned, contents are guaranteed to be integers. * * @param string $name - * @param array $default Option default (or null) + * @param array|null $default Option default (or null) * @return array Array of ints */ public function getIntArray( $name, $default = null ) { @@ -776,8 +776,8 @@ class WebRequest { * Get a cookie from the $_COOKIE jar * * @param string $key The name of the cookie - * @param string $prefix A prefix to use for the cookie name, if not $wgCookiePrefix - * @param mixed $default What to return if the value isn't found + * @param string|null $prefix A prefix to use for the cookie name, if not $wgCookiePrefix + * @param mixed|null $default What to return if the value isn't found * @return mixed Cookie value or $default if the cookie not set */ public function getCookie( $key, $prefix = null, $default = null ) {