dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
783aa87
)
Do not pass unused parameter
author
Jakub Vrana
<jakub@vrana.cz>
Sat, 1 Dec 2018 17:08:56 +0000
(18:08 +0100)
committer
Jakub Vrana
<jakub@vrana.cz>
Sat, 1 Dec 2018 17:08:56 +0000
(18:08 +0100)
Found by PHPStan.
Change-Id: I6c33aa29af02b7a5ca01e2e20103e4a873cb722a
includes/utils/UIDGenerator.php
patch
|
blob
|
history
diff --git
a/includes/utils/UIDGenerator.php
b/includes/utils/UIDGenerator.php
index
11cc21f
..
15c0cf9
100644
(file)
--- a/
includes/utils/UIDGenerator.php
+++ b/
includes/utils/UIDGenerator.php
@@
-74,7
+74,7
@@
class UIDGenerator {
}
Wikimedia\restoreWarnings();
if ( !preg_match( '/^[0-9a-f]{12}$/i', $nodeId ) ) {
- $nodeId = MWCryptRand::generateHex( 12
, true
);
+ $nodeId = MWCryptRand::generateHex( 12 );
$nodeId[1] = dechex( hexdec( $nodeId[1] ) | 0x1 ); // set multicast bit
}
file_put_contents( $this->nodeIdFile, $nodeId ); // cache