Permalink
Browse files

CodeCoverage: fixed notice in HTML template

Introduced by dda08f9
  • Loading branch information...
milo committed Jul 20, 2018
1 parent fc8df79 commit a3a856951e9826e399bcb9d69a5a981eb9e8214d
Showing with 1 addition and 1 deletion.
  1. +1 βˆ’1 src/CodeCoverage/Generators/template.phtml
@@ -160,7 +160,7 @@
$prevClass = null;
$closeTag = $buffer = '';
for ($i = 1; $i < $lineCount; $i++) {
$class = $classes[$info->lines[$i]] ?? '';
$class = isset($info->lines[$i]) && isset($classes[$info->lines[$i]]) ? $classes[$info->lines[$i]] : '';
if ($class !== $prevClass) {
echo rtrim($buffer) . $closeTag;
$buffer = '';

0 comments on commit a3a8569

Please sign in to comment.