X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FFauxRequest.php;h=ecbc6e337345e7dc23194c70671b0c925b84860d;hb=1ee582b2a867207a95e3e4d3ff11ea814e216cdd;hp=3b2283b77a8ab299ef1671dc4801e52763226b53;hpb=7874fc4bec845ad92960b07e969c65f3c3fe74f2;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/FauxRequest.php b/includes/FauxRequest.php index 3b2283b77a..ecbc6e3373 100644 --- a/includes/FauxRequest.php +++ b/includes/FauxRequest.php @@ -121,12 +121,12 @@ class FauxRequest extends WebRequest { $prefix = $wgCookiePrefix; } $name = $prefix . $key; - return isset( $this->cookies[$name] ) ? $this->cookies[$name] : $default; + return $this->cookies[$name] ?? $default; } /** * @since 1.26 - * @param string $name Unprefixed name of the cookie to set + * @param string $key Unprefixed name of the cookie to set * @param string|null $value Value of the cookie to set * @param string|null $prefix Cookie prefix. Defaults to $wgCookiePrefix */ @@ -152,6 +152,7 @@ class FauxRequest extends WebRequest { /** * @since 1.25 + * @param string $url */ public function setRequestURL( $url ) { $this->requestUrl = $url; @@ -160,6 +161,7 @@ class FauxRequest extends WebRequest { /** * @since 1.25 MWException( "getRequestURL not implemented" ) * no longer thrown. + * @return string */ public function getRequestURL() { if ( $this->requestUrl === null ) {