X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2FWebRequest.php;h=7bfb5a43e481dba11d0844ccb1f48b59ea183651;hp=3d5e372c5a66692a575e20aee34a64f7cb75688f;hb=faf7cc4a09848c538320bd2b9067b1a77c0a0183;hpb=64b83bdb3afd0ee4f8fc1893a865409c198e601e diff --git a/includes/WebRequest.php b/includes/WebRequest.php index 3d5e372c5a..7bfb5a43e4 100644 --- a/includes/WebRequest.php +++ b/includes/WebRequest.php @@ -407,7 +407,7 @@ class WebRequest { * * @since 1.28 * @param string $name - * @param string|null $default Optional default + * @param string|null $default * @return string|null */ public function getRawVal( $name, $default = null ) { @@ -956,7 +956,7 @@ class WebRequest { public function response() { /* Lazy initialization of response object for this request */ if ( !is_object( $this->response ) ) { - $class = ( $this instanceof FauxRequest ) ? 'FauxResponse' : 'WebResponse'; + $class = ( $this instanceof FauxRequest ) ? FauxResponse::class : WebResponse::class; $this->response = new $class(); } return $this->response;