Happens when --verbose-stats is used.
Noticed on MW 1.40.2 but it doesn't seem the code has been updated after that.
Happens when --verbose-stats is used.
Noticed on MW 1.40.2 but it doesn't seem the code has been updated after that.
for ( $coarseIndex = 0; $coarseIndex < $numBins; $coarseIndex++ ) { $val = $coarseHistogram[$coarseIndex] ?? 0; // @phan-suppress-next-line PhanTypePossiblyInvalidDimOffset False positive $boundary = $coarseBoundaries[$coarseIndex]; $this->output( sprintf( "%-10s %-10d |%s\n", $prevBoundary . '-' . ( $boundary - 1 ) . ': ', $val, str_repeat( '*', $scale * $val ) ) ); $prevBoundary = $boundary; }
458 in 1.40 is str_repeat( '*', $scale * $val ) ) );
Which is line 395 in master.
Heh, the code is basically unchanged for over a decade since it was added rMW8df24d558639: updateCollation.php size histogram feature
Change 1008056 had a related patch set uploaded (by Reedy; author: Reedy):
[mediawiki/core@master] updateCollation: Explicitly cast $scale to int
Change 1008056 merged by jenkins-bot:
[mediawiki/core@master] updateCollation: Explicitly cast $scale to int
Change 1008010 had a related patch set uploaded (by Reedy; author: Reedy):
[mediawiki/core@REL1_41] updateCollation: Explicitly cast $scale to int
Change 1008011 had a related patch set uploaded (by Reedy; author: Reedy):
[mediawiki/core@REL1_40] updateCollation: Explicitly cast $scale to int
Change 1008012 had a related patch set uploaded (by Reedy; author: Reedy):
[mediawiki/core@REL1_39] updateCollation: Explicitly cast $scale to int
Change 1008010 merged by jenkins-bot:
[mediawiki/core@REL1_41] updateCollation: Explicitly cast $scale to int
Change 1008012 merged by jenkins-bot:
[mediawiki/core@REL1_39] updateCollation: Explicitly cast $scale to int
Change 1008011 merged by jenkins-bot:
[mediawiki/core@REL1_40] updateCollation: Explicitly cast $scale to int