Add compatibility with PHP 8.1
This commit is contained in:
@ -571,7 +571,7 @@ class StatisticManager implements UsageInformationAble {
|
||||
* @param string $statType
|
||||
* @return bool
|
||||
*/
|
||||
public function insertStat($statName, Player $player, $serverIndex = -1, $value, $statType = self::STAT_TYPE_INT) {
|
||||
public function insertStat($statName, Player $player, $serverIndex = -1, $value = 0, $statType = self::STAT_TYPE_INT) {
|
||||
// TODO: statType isn't used
|
||||
if (!$player) {
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user