Skip to content

Commit 2911fb6

Browse files
Do not overwrite variable in loop
1 parent 00521a7 commit 2911fb6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Runner/PHPT/PhptTestCase.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -588,9 +588,9 @@ private function parse(): array
588588
throw new InvalidPhptFileException;
589589
}
590590

591-
foreach ($unsupportedSections as $section) {
592-
if (isset($sections[$section])) {
593-
throw new UnsupportedPhptSectionException($section);
591+
foreach ($unsupportedSections as $unsupportedSection) {
592+
if (isset($sections[$unsupportedSection])) {
593+
throw new UnsupportedPhptSectionException($unsupportedSection);
594594
}
595595
}
596596

0 commit comments

Comments
 (0)