Skip to content

Commit 5bb5f83

Browse files
committed
Changelog for #2853
1 parent 67c3859 commit 5bb5f83

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

package.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ http://pear.php.net/dtd/package-2.0.xsd">
2828
<notes>
2929
- Fixed bug #2848 : PSR12.Files.FileHeader false positive for file with mixed PHP and HTML and no file header
3030
- Fixed bug #2849 : Generic.WhiteSpace.ScopeIndent false positive with arrow function inside array
31+
- Fixed bug #2853 : Undefined variable error when using Info report
32+
-- Thanks to Juliette Reinders Folmer for the patch
3133
</notes>
3234
<contents>
3335
<dir name="/">

src/Reports/Info.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,9 @@ public function generate(
116116

117117
// Length of the total string, plus however many
118118
// thousands separators there are.
119-
$countWidth = strlen($totalCount);
120-
$nrOfThousandSeps = floor($countWidth / 3);
121-
$countWidth += $nrOfThousandSeps;
119+
$countWidth = strlen($totalCount);
120+
$thousandSeparatorCount = floor($countWidth / 3);
121+
$countWidth += $thousandSeparatorCount;
122122

123123
// Account for 'total' line.
124124
$valueWidth = max(5, $valueWidth);

0 commit comments

Comments
 (0)