From: Ricordisamoa Date: Mon, 20 Feb 2017 21:19:47 +0000 (+0100) Subject: Fix documentation comments for some WebRequest methods X-Git-Tag: 1.31.0-rc.0~4039^2 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=06c8656d95c1404cc97c9ab32d2adeff70b468da;p=lhc%2Fweb%2Fwiklou.git Fix documentation comments for some WebRequest methods WebRequest methods getRawVal(), getVal() and getArray() can return null. Change-Id: I555dfd93c7cdebc83aab89f3efe4de3018bc9de0 --- diff --git a/includes/WebRequest.php b/includes/WebRequest.php index 3bbdc3f312..78d7444156 100644 --- a/includes/WebRequest.php +++ b/includes/WebRequest.php @@ -408,7 +408,7 @@ class WebRequest { * @since 1.28 * @param string $name * @param string|null $default Optional default - * @return string + * @return string|null */ public function getRawVal( $name, $default = null ) { $name = strtr( $name, '.', '_' ); // See comment in self::getGPCVal() @@ -432,7 +432,7 @@ class WebRequest { * * @param string $name * @param string $default Optional default (or null) - * @return string + * @return string|null */ public function getVal( $name, $default = null ) { $val = $this->getGPCVal( $this->data, $name, $default ); @@ -482,7 +482,7 @@ class WebRequest { * * @param string $name * @param array $default Optional default (or null) - * @return array + * @return array|null */ public function getArray( $name, $default = null ) { $val = $this->getGPCVal( $this->data, $name, $default );