From: Jakub Vrana Date: Sat, 1 Dec 2018 17:08:56 +0000 (+0100) Subject: Do not pass unused parameter X-Git-Tag: 1.34.0-rc.0~3375^2 X-Git-Url: http://git.cyclocoop.org/%7B%7B%20url_for%28%27admin_vote_add%27%29%20%7D%7D?a=commitdiff_plain;h=28dbef2f96631ebdce03da8d83856f1409ea1c31;p=lhc%2Fweb%2Fwiklou.git Do not pass unused parameter Found by PHPStan. Change-Id: I6c33aa29af02b7a5ca01e2e20103e4a873cb722a --- diff --git a/includes/utils/UIDGenerator.php b/includes/utils/UIDGenerator.php index 11cc21f76e..15c0cf9602 100644 --- 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