dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix PhanTypeMismatchDeclaredParam
[lhc/web/wiklou.git]
/
includes
/
logging
/
LogFormatter.php
diff --git
a/includes/logging/LogFormatter.php
b/includes/logging/LogFormatter.php
index
0ffe691
..
d59c6aa
100644
(file)
--- a/
includes/logging/LogFormatter.php
+++ b/
includes/logging/LogFormatter.php
@@
-19,7
+19,7
@@
*
* @file
* @author Niklas Laxström
*
* @file
* @author Niklas Laxström
- * @license
http://www.gnu.org/copyleft/gpl.html GNU General Public License 2.0 or
later
+ * @license
GPL-2.0-or-
later
* @since 1.19
*/
use MediaWiki\Linker\LinkRenderer;
* @since 1.19
*/
use MediaWiki\Linker\LinkRenderer;
@@
-377,7
+377,7
@@
class LogFormatter {
// new key (5::duration/6::flags) or old key (0/optional 1)
if ( $entry->isLegacy() ) {
$rawDuration = $parameters[0];
// 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'];
} 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.
/**
* 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
* @param array $parameters Query parameters
* @param string|null $html Linktext of the link as raw html
* @throws MWException