From 06c8656d95c1404cc97c9ab32d2adeff70b468da Mon Sep 17 00:00:00 2001 From: Ricordisamoa Date: Mon, 20 Feb 2017 22:19:47 +0100 Subject: [PATCH] Fix documentation comments for some WebRequest methods WebRequest methods getRawVal(), getVal() and getArray() can return null. Change-Id: I555dfd93c7cdebc83aab89f3efe4de3018bc9de0 --- includes/WebRequest.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ); -- 2.20.1