X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=blobdiff_plain;f=includes%2Flogging%2FLogFormatter.php;h=d59c6aa1ca04a82e109d6cfca3a555bde633ad77;hb=130ec2523df12a3ca2fe0d422163696d09fcea08;hp=0cf3e6d251887e27d2d36531fe9d59bd5f1ac676;hpb=967a96e7fa5910f8fc451590decb381dbfb481ba;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/logging/LogFormatter.php b/includes/logging/LogFormatter.php index 0cf3e6d251..d59c6aa1ca 100644 --- a/includes/logging/LogFormatter.php +++ b/includes/logging/LogFormatter.php @@ -377,7 +377,7 @@ class LogFormatter { // new key (5::duration/6::flags) or old key (0/optional 1) if ( $entry->isLegacy() ) { $rawDuration = $parameters[0]; - $rawFlags = isset( $parameters[1] ) ? $parameters[1] : ''; + $rawFlags = $parameters[1] ?? ''; } else { $rawDuration = $parameters['5::duration']; $rawFlags = $parameters['6::flags']; @@ -639,7 +639,7 @@ class LogFormatter { /** * Helper to make a link to the page, taking the plaintext * value in consideration. - * @param Title $title The page + * @param Title|null $title The page * @param array $parameters Query parameters * @param string|null $html Linktext of the link as raw html * @throws MWException